• Resolved stephenoconnor

    (@stephenoconnor)


    Getting this error with enfold theme: Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/www/stepheno77.sg-host.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:731

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dan009

    (@dan009)

    That’s not related to the plugin. That’s your theme’s error.
    Could you elaborate, and give a little more info.
    Dan.

    Thread Starter stephenoconnor

    (@stephenoconnor)

    Thanks for reply Dan, yeah it’s actually in the backend products menu – everything else seems to work fine, but the products screen is broken. screenshot here: https://ibb.co/xLdMTK3
    error message here:

    Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/www/stepheno77.sg-host.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:731 Stack trace: #0 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/class-wp-hook.php(303): aviaElementTemplates->handler_pages_custom_column(0, 2099) #1 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(1325): do_action('manage_posts_cu...', 0, 2099) #4 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/includes/class-wp-list-table.php(1452): WP_Posts_List_Table->column_default(Object(WP_Post), 0) #5 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/ in /home/customer/www/stepheno77.sg-host.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 731
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about troubleshooting WordPress.
    Plugin Author dan009

    (@dan009)

    Hi,

    I might have an idea what is causing the issue, but I would need you to edit the plugin and comment out 2 lines of code, one at the time.

    If you go in the plugin editor and select /includes/RafflePlayWoo_Plugin.php
    Comment out line 259 first:
    add_filter( 'manage_edit-product_columns', array( &$this, 'drp_add_product_column' ), 10, 1 );
    Save and have a look if error persists.
    If error still there comment out next line 260:
    add_action( 'manage_product_posts_custom_column', array( &$this, 'drp_product_column_raffle'), 11, 2 );

    Dan

    Thread Starter stephenoconnor

    (@stephenoconnor)

    Thanks Dan,
    Commenting out the first line worked thank you!

    Plugin Author dan009

    (@dan009)

    Great.

    Will do a release ASAP.

    If you like the plugin, would appreciate if you could rate it.

    Thank you.

    Dan.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught Error: Object of class WP_Error could not be converted to string’ is closed to new replies.