Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.

Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Problem with AWPCP Custumer/Subscriber in the Backend View
January 5, 2020
8:44 am
Cyberhunter
Member
Members
Forum Posts: 3
Member Since:
January 5, 2020
sp_UserOfflineSmall Offline

Hello,

i've got a problem with the user backend view.
If "Enable User Ad Management Panel" is activated, than see more Issues in der Backend View.
Can you help me? Wher is the problem in the configuration?

Thanks for your support

 

backend.jpgImage Enlargerbackend-active-1.JPGImage Enlarger

January 6, 2020
7:34 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 6207
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi Cyberhunter,

Thanks for your post. I'm sorry to hear that you ran into issues with this!

We are happy to help troubleshoot this issue with you. Can you tell me a bit more?
- What version of WP are you running here?
- What exact version of AWPCP?  (number, please)
- What exact version of any other AWPCP Modules? (number, please)
- Can you please send a link to the affected site? 

We should also do a check for theme and plugin conflicts. Theme and plugin conflicts are very common in WordPress, and a conflict test is used to help determine the cause of the issue. Please conduct the test and let me know the results. Here is an article about how to test for theme and plugin conflicts with AWPCP, which may help pinpoint the issue: https://awpcp.com/forum/faq/ho.....conflicts/

Before doing a conflict test, it is a best practice to take a backup of your site before beginning or to do the test on a staging site, in case any settings are changed during the process.

That will help us troubleshoot the issue a little faster. Please let me know. 

January 10, 2020
2:58 am
Cyberhunter
Member
Members
Forum Posts: 3
Member Since:
January 5, 2020
sp_UserOfflineSmall Offline

I have 2 installation from WP and AWPCP, 1 develop and 1 production sites.

all sites PHP 7.2

##########

WP and AWPCP Develop Installation: new installation

http://vivaristik4you.it-websolution.net

WordPress 5.3.2 running Twenty Twenty theme.

Plugins: only AWPCP Version 4.0.8.1 

 

#########

WP and AWPCP and Featured Ads Module on production site:

https://vivaristik4you.de

WordPress 5.3.2 running Seos Blue theme.

Plugins:

Plugin Version
Advanced Ads 1.16.1
Advanced noCaptcha & invisible Captcha 5.6
Another WordPress Classifieds Plugin (AWPCP) 4.0.8.1
Antispam Bee 2.9.1
AWPCP Featured Ads 4.0.6
Broken Link Checker 1.11.10
BuddyPress 5.1.2
Contact Form 7 5.1.6
Cookie Notice 1.2.50
Hupso Share Buttons for Twitter, Facebook & Google+ 4.5.0
Limit Login Attempts Reloaded 2.10.0
Loco Translate 2.3.1
MetaSlider 3.15.3
PayPal Buy Now Button 1.7.2
Profile Builder 3.0.7
Profile Builder - Customization Toolbox Add-On 1.0.4
Profile Builder - GDPR Communication Preferences 1.0.1
Regenerate Thumbnails Advanced 2.1.0
Simple Banner 2.1.3
Smash Balloon Custom Facebook Feed 2.12.3
SSL Insecure Content Fixer 2.7.2
Statify 1.6.3
WP Maintenance Mode 2.2.4
WPForms Lite 1.5.7

 

Thanks for your support

January 10, 2020
9:15 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 6207
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi Cyberhunter,

Thanks for that. That's odd if you get that while running no other plugins and using the TwentyTwenty theme. I'd like to have a developer take a look here. Can we please get WP admin and FTP credentials to your site to look into this further?

We need the following information to debug the issue:
– A link to this forum thread
– WP admin username
– WP admin password
– WP login URL
– FTP username
– FTP password
– FTP servername/IP address

Please be sure that the FTP credentials are ones:
- That point to the WordPress install on the server
- That have full READ and WRITE access to that folder
- That do NOT HAVE UPLOAD restrictions

If we receive credentials that don't match these requirements, it will increase the time we require to debug and repair the issue.

Before you send this information, we strongly recommend that you perform a full site and database backup.  We cannot be responsible for a site's contents if this basic admin operation is not performed.

Contact us with a link to this forum thread and that information here: https://awpcp.com/contact/

January 22, 2020
2:08 pm
Cyberhunter
Member
Members
Forum Posts: 3
Member Since:
January 5, 2020
sp_UserOfflineSmall Offline

I sent out the info.

 

Have a nice day Cyberhunter

January 24, 2020
9:28 am
DelM
Member
Members
Forum Posts: 5
Member Since:
January 16, 2020
sp_UserOfflineSmall Offline

This is the same issue I reported.

UPDATE: I just half-fixed mine myself. I say half-fixed because the error has to do with the amount of ads count, and my fix shows the counts for ALL ads (not just the user), but the user can't see or edit anyone else's ads, they only see the count, so it works for me. I just can't have all the errors for my customers to see.

Unfortunately, I had to change the core file that was reporting the error, but it worked just fine, hopefully not affecting anything else in the site. Maybe this post can help the developer figure out the problem. I don't recommend anyone do so, but this is what I did to make the error disappear:

File edited:
/wp-content/plugins/another-wordpress-classifieds-plugin/includes/admin/class-list-table-restrictions.php

I commented out a few lines of code (line 99 to 105) and returned the variable $counts that was in the conditional code I commented out. So, the 'corrected' full function looks like this

public function filter_posts_count( $counts, $type ) {
global $wpdb;

// COMMENT OUT FROM HERE
/* if ( $this->roles_and_capabilities->current_user_is_moderator() ) {
return $counts;
}

if ( $this->listing_post_type !== $type ) {
return $counts;
}*/
// COMMENT OUT TO HERE

return $counts; // ADD THIS

$counts = array_fill_keys( array_keys( $counts ), 0 );
$current_user_id = $this->request->get_current_user_id();

$cache_key = "posts-{$this->listing_post_type}_{$current_user_id}";
$results = wp_cache_get( $cache_key, 'awpcp-counts' );

if ( ! is_array( $results ) ) {
$query = $wpdb->prepare(
"
SELECT post_status, COUNT( * ) AS num_posts
FROM {$wpdb->posts}
WHERE post_type = %s AND post_author = %d GROUP BY post_status
",
$type,
$current_user_id
);

$results = $wpdb->get_results( $query, ARRAY_A );

// This function is called on the Classifieds Ads admin page only.
// This cache should prevent the query from being executed twice or
// more on a single request, but we don't want to store the results
// between requests to avoid having to add extra logic to invalidate
// the cache.
wp_cache_set( $cache_key, $results, 'awpcp-counts', 30 );
}

foreach ( $results as $row ) {
$counts->{$row['post_status']} = $row['num_posts'];
}

return $counts;
}

January 25, 2020
7:14 am
AWPCP Support
Moderator
Members

Moderators
Forum Posts: 6207
Member Since:
September 4, 2013
sp_UserOfflineSmall Offline

Hi DelM,

Yes, this is a bug that has just been addressed in a dev version of the plugin. If you'd like a copy, contact us with a link to this forum thread here: https://awpcp.com/contact/

Forum Timezone: America/Denver
Most Users Ever Online: 426
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 631
Members: 22620
Moderators: 3
Admins: 2
Forum Stats:
Groups: 1
Forums: 4
Topics: 7432
Posts: 33065
Newest Members:
Lars Forsch
Moderators: awpcp: 7530, AWPCP Support: 6207, Bobbie Devereux: 3
Administrators: awpcp: 300, Steph Wells: 0

Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.

Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.

Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.

Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.