Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I have found that Version 3.4.3 of Co-Authors Plus causes conflicts with Elementor page builder. Widgets dont load, also getting 500 errors
    WP version: 5.5.1

    Thread Starter jspenney

    (@jspenney)

    Hector,
    Yes, something is a little funny. I appreciate that you took the time to check into this for me.
    -John

    Thread Starter jspenney

    (@jspenney)

    there is some plugin conflict but it is hard to find. If I disable all my plugins at once, I get the error on line 43. If I start disabling plugins randomly, then it crashes when most of the plugins have been disabled, but it crashes on a different plugin every time. Unusual problem. Any ideas?

    Thread Starter jspenney

    (@jspenney)

    I am working on this. When I deactivated all pluging, I got the same error so it may be a plugin conflict

    Thread Starter jspenney

    (@jspenney)

    Hector
    I still have a problem in troubleshooting mode. When I turn it on, i get this error

    Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php:43 Stack trace: #0 /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php(65): get_popular_posts_ids(‘last30days’, 5) #1 /home/dulcie/public_html/wp-settings.php(514): include(‘/home/dulcie/pu…’) #2 /home/dulcie/public_html/wp-config.php(128): require_once(‘/home/dulcie/pu…’) #3 /home/dulcie/public_html/wp-load.php(37): require_once(‘/home/dulcie/pu…’) #4 /home/dulcie/public_html/wp-admin/admin.php(34): require_once(‘/home/dulcie/pu…’) #5 /home/dulcie/public_html/wp-admin/index.php(10): require_once(‘/home/dulcie/pu…’) #6 {main} thrown in /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php on line 43

    line 43 is
    if ( is_plugin_active(‘wordpress-popular-posts/wordpress-popular-posts.php’) ) {

    If I disable the WP Popular posts plugin, all is fine.

    Thread Starter jspenney

    (@jspenney)

    It is under tools > site health> troubleshooing mode
    I am not quite sure but I think it turns off all your plugins and you can turn them on individually to test problems.

    the error is

    Fatal error: Uncaught Error: Class ‘WordPressPopularPosts\Query’ not found in /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php:43 Stack trace: #0 /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php(62): get_popular_posts_ids(‘last30days’, 5) #1 /home/dulcie/public_html/wp-settings.php(514): include(‘/home/dulcie/pu…’) #2 /home/dulcie/public_html/wp-config.php(128): require_once(‘/home/dulcie/pu…’) #3 /home/dulcie/public_html/wp-load.php(37): require_once(‘/home/dulcie/pu…’) #4 /home/dulcie/public_html/wp-admin/admin.php(34): require_once(‘/home/dulcie/pu…’) #5 /home/dulcie/public_html/wp-admin/index.php(10): require_once(‘/home/dulcie/pu…’) #6 {main} thrown in /home/dulcie/public_html/wp-content/themes/generatepress_child/functions.php on line 43

    it starts at line 39
    this is line 43
    $query = new \WordPressPopularPosts\Query([
    ————————————–
    function get_popular_posts_ids($range = ‘last7days’, $limit = 10, $pid = ‘16817,6620’)
    {
    $post_IDs = array();

    $query = new \WordPressPopularPosts\Query([
    ‘range’ => $range,
    ‘limit’ => $limit,
    ‘pid’ => $pid
    ]);
    $popular_posts = $query->get_posts();

    // Popular posts found, get their IDs
    if ( is_array($popular_posts) && ! empty($popular_posts) ) {
    foreach($popular_posts as $popular_post) {
    $post_IDs[] = $popular_post->id;
    }
    }

    return $post_IDs;
    }

    Thread Starter jspenney

    (@jspenney)

    Hector,
    I want to thank you for your response. This works well. IF you want to see it, it is in the section: This months most popular, in the center of the page
    https://www.passblue.com/

    but I believe i found an issue that I want to ask you about. When I click on troubleshooting mode, this I get a fatal error in the code. I have to comment out the code in functions to get the site back. I would guess that the code is looking for the plugin, which can not be found. Is there a way to solve that problem?

    Thanks,
    John

    Thread Starter jspenney

    (@jspenney)

    Héctor,
    Thanks for your response. My technical skills are not very deep. Can you give me any insight into how I can install the class in my child them and loop the array?
    I appreciate any help you could provide.
    Thanks,
    John Penney

    Thread Starter jspenney

    (@jspenney)

    John-Paul,

    Resetting the permalinks did the job!
    Thank you for sharing your expertise. I appreciate your kindness.

    Best,
    John

Viewing 9 replies - 1 through 9 (of 9 total)