Support » Plugin: Timeline Express » Fatal Error Timeline Express Plugin

  • Resolved xxjuujuuuxx

    (@xxjuujuuuxx)


    Please help me with this error!

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/helpers.php:234 Stack trace: #0 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/helpers.php(109): timeline_express_build_bootstrap_icon_dropdown(Object(CMB2_Field), ‘fa-exclamation-…’) #1 /users/xxjuujuuuxx/www/wp-includes/class-wp-hook.php(286): cmb2_render_callback_te_bootstrap_dropdown(Object(CMB2_Field), ‘fa-exclamation-…’, 89, ‘post’, Object(CMB2_Types)) #2 /users/xxjuujuuuxx/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /users/xxjuujuuuxx/www/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Types.php(84): do_action(‘cmb2_render_te_…’, Object(CMB2_Field), ‘fa-exclamation-…’, 89, ‘post’, Object(CMB2_Types)) #5 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Types.php(107): CMB2_Types->__call(‘te_bootstrap_dr…’, Array) #6 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Types.php(96): CMB2_Types->_render() #7 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Field.php(880): CMB2_Types->render() #8 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Base.php(315): CMB2_Field->render_field_callback(Array, Object(CMB2_Field), NULL) #9 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Base.php(273): CMB2_Base->do_callback(Array) #10 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Base.php(249): CMB2_Base->get_param_callback_result(‘render_row_cb’) #11 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Field.php(836): CMB2_Base->peform_param_callback(‘render_row_cb’) #12 /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2.php(427): CMB2_Field- in /users/xxjuujuuuxx/www/wp-content/plugins/timeline-express/lib/helpers.php on line 234

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Code Parrots

    (@codeparrots)

    It sounds like the remote request over to the font awesome CDN is failing.

    What you can do, is force load the font awesome files from within the plugin, and not from the CDN. You’ll just want to add the following line of code into your themes functions.php file.

    define( 'TIMELINE_EXPRESS_FONT_AWESOME_LOCAL', true );

    This should load the files locally, and not attempt to retrieve the icons from the remote CDN server, hopefully working around the error you are seeing there.

    Let us know if that helps!

    Thread Starter xxjuujuuuxx

    (@xxjuujuuuxx)

    I added the code in my functions.php file but unfortunately it doesn’t work. I still get the error message.

    Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @xxjuujuuuxx

    Did you download the plugin here from WordPress.org? We’ve tested, but we’re not encountering any similar issues.

    babbefjes

    (@babbefjes)

    Hey,

    I am seeing this one aswell. Can’t edit or make new announcements.
    Tried disabling cache but no luck so far with fixing this one..

    Plugin Contributor Code Parrots

    (@codeparrots)

    What version of the plugin do you have installed? This should not be an issue any longer as WP_Error is no longer being referenced as an array.

    babbefjes

    (@babbefjes)

    I’m using version 1.7.3 with latest wp 4.9.8

    Active plugins:

    advanced-database-cleaner
    advanced-gutenberg
    advanced-page-manager
    all-in-one-wp-migration
    backwpup
    classic-editor
    clearfy
    cool-timeline
    debug-this
    elementor
    fully-background-manager
    gutenberg
    hide-title
    litespeed-cache
    meta-box
    noakes-menu-manager
    page-break
    pricing-table-plus
    really-simple-ssl
    responsive-lightbox-popup
    responsive-menu
    resume
    robin-image-optimizer
    taxonomy-terms-order
    timeline-express
    trash-duplicate-and-301-redirect
    wordpress-importer
    wp-author-date-and-meta-remover
    wp-rollback

    —————–

    Error:

    Announcement Icon

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /srv/disk13/2825696/www/example.com/wp-content/plugins/timeline-express/lib/helpers.php:234 Stack trace: #0 /srv/disk13/2825696/www/example.com/wp-content/plugins/timeline-express/lib/helpers.php(109): timeline_express_build_bootstrap_icon_dropdown(Object(CMB2_Field), ‘fa-exclamation-…’) #1 /srv/disk13/2825696/www/example.com/wp-includes/class-wp-hook.php(286): cmb2_render_callback_te_bootstrap_dropdown(Object(CMB2_Field), ‘fa-exclamation-…’, 1750, ‘post’, Object(CMB2_Types)) #2 /srv/disk13/2825696/www/example.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /srv/disk13/2825696/www/example.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /srv/disk13/2825696/www/example.com/wp-content/plugins/timeline-express/lib/admin/CMB2/includes/CMB2_Types.php(84): do_action(‘cmb2_render_te_…’, Object(CMB2_Field), ‘fa-exclamation-…’, 1750, ‘post’, Object(CMB2_Types)) #5 /srv/disk13/2825696/www/example.com/wp-content/plu in /srv/disk13/2825696/www/example.com/wp-content/plugins/timeline-express/lib/helpers.php on line 234

    —————–

    Below Announcement icon section there is nothing so it breaks the rest. Anyway, notice how it reads ‘/wp-content/plu in’ on third from last line. That is odd but maybe it makes more sense to you.

    Cheers, and thanks for looking into this.

    Plugin Contributor Code Parrots

    (@codeparrots)

    Hi @babbefjes,

    Does the error go away if you add the following to your themes functions.php file:

    define( 'TIMELINE_EXPRESS_FONT_AWESOME_LOCAL', true )

    Digging through some of the code, it looks like things are failing on the wp_remote_get request. Without access to the site, or adding some debugging into the code, it’s hard to tell what’s going on under the hood.

    babbefjes

    (@babbefjes)

    Yeah, that one was added but the problem persists. I could add some debuggin code if you want a closer look.

    Plugin Contributor Code Parrots

    (@codeparrots)

    What I would suggest is checking the output of that remote get request in the code linked above. If you open the plugin file and add:

    wp_die( print_r( $response ) );

    just above

    /* If the response body is empty, abort */

    You should, at the very least, see what the response of the request is and why it’s failing.

    babbefjes

    (@babbefjes)

    Alright, looks like we got something:

    WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: Failed to connect to example.com port 443: Connection refused ) ) [error_data] => Array ( ) ) 1

    Plugin Contributor Code Parrots

    (@codeparrots)

    Are you running a request to example.com? We shouldn’t be referencing example.com in our plugin.

    babbefjes

    (@babbefjes)

    no i replaced mine with that, but its is as written, no http in front.

    Good afternoon!

    @codeparrots have you some answer for this error?
    I’m getting the same thing and i try reproduce the suggestions gave here but nothing solve.

    Please, can help me with this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal Error Timeline Express Plugin’ is closed to new replies.