• Resolved singingfalls

    (@singingfalls)


    Thanks for your attention.
    I’ve been using Sydney since wordpress 4.7X. Love it.
    I recently did a fresh manual install of 5.8.2. Installed Sydney theme with Elementor and Sydney Toolbox plugins. I am unable to activate the Sydney Toolbox plugin. I get a fatal error notice:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class "sydney-toolbox" not found in /home/public_html/surcp.org/wp-includes/class-wp-hook.php:303 Stack trace: #0 /home/public_html/surcp.org/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #1 /home/public_html/surcp.org/wp-includes/plugin.php(470): WP_Hook->do_action() #2 /home/public_html/surcp.org/wp-admin/plugins.php(193): do_action() #3 {main} thrown in /home/public_html/surcp.org/wp-includes/class-wp-hook.php on line 303

    Any assistance would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)
  • @singingfalls I am sorry to hear about the problem you’re experiencing.

    I need more information to find out the source of the problem.

    Which version of Sydney Toolbox plugi are you running? If it is not the latest, please try manually deleting the plugin from your site’s directory, that can be accessed via FTP/sFTP or cPanel. Then install the latest version of the plugin.

    Regards,
    Kharis

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank My sincere gratitude for your attention. The version of sydney toolbox I have installed is 1.18. Fresh install of wordpress 5.8.2. I did exactly as you recommended several times. I manually deleted the plugin and reinstalled the latest version. I get the same warning of fatal error.

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class "sydney-toolbox" not found in /home/public_html/surcp.org/wp-includes/class-wp-hook.php:303 Stack trace: #0 /home/public_html/surcp.org/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #1 /home/public_html/surcp.org/wp-includes/plugin.php(470): WP_Hook->do_action() #2 /home/public_html/surcp.org/wp-admin/plugins.php(193): do_action() #3 {main} thrown in /home/public_html/surcp.org/wp-includes/class-wp-hook.php on line 303

    One interesting item to note. In the cpanel file manager I select the plugins. The panel on the right shows the plugin. The plugin directory on the left does not. Here is a link to a screenshot: https://surcp.org/sydney_toolbox.png

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank Also I am using php 8

    I’m having the same issue. Have followed your steps, Kharis, to delete sydney toolbox from ftp/cpanel and downloaded latest Sydney Toolbox plugin and reinstalled. Same fatal error.

    Am currently using Sydney child theme with Sydney theme at v1.85. Latest PHP version 8.

    Please advise.
    Thanks,
    Margarita

    @singingfalls @mrovani I did testing with PHP 8 and didn’t get the same issue to appear. Perhaps it only appears on a specific page? Can you share the link(s), that will help identify the source of the problem easier?

    Regards,
    Kharis

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank Thank you for the reply. The problem is not with any particular page. The error comes when I attempt to activate the Sydney Toolbox plugin. I am unable to install the plugin at all. I keep getting the error posted in my original post.

    @singingfalls thank you for getting back along with additional information.

    1. Try editing the Sydney Toolbox plugin’s sydney-toolbox.php file
    2. Go to the most bottom line and replace this code:

    
    register_activation_hook( __FILE__, array( 'sydney-toolbox', 'install' ) );
    

    with

    
    //Does not activate the plugin on PHP less than 5.4
    function sydney_toolbox_plugin_activation() {
    	return Sydney_Toolbox::install();
    }
    register_activation_hook( __FILE__, 'sydney_toolbox_plugin_activation' );
    

    3. Update the changes to your site and enable the plugin.

    Hope that helps.

    Regards,
    Kharis

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank Thank you so much for your help. I have made the recommended changes and I received a parsing error as follows:

    Parse error: syntax error, unexpected token “&”, expecting “)” in /home/public_html/surcp.org/wp-content/plugins/sydney-toolbox/sydney-toolbox.php on line 230

    Seems to be progress being made and I am sincerely grateful. Not knowing php I am hesitant to alter your code. It seems a minor change will fix it. Any further assistance would be greatly appreciated.

    I Cc @mrovani also

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank @mrovani Just on a whim I did a little homework on line, mixed in a little “by guess and by golly” :), and modified your code on the very bottom line (line 230) to look as it appears below. I am glad to say that WP declares the plugin is now activated. @kharisblank you are a genius and I am sincerely grateful for your effort. I hope this will assist others if they have a problem in the future.

    `//Does not activate the plugin on PHP less than 5.4
    function sydney_toolbox_plugin_activation() {
    return Sydney_Toolbox::install();
    }
    register_activation_hook( __FILE__,) 'sydney_toolbox_plugin_activation' );

    Thread Starter singingfalls

    (@singingfalls)

    //Does not activate the plugin on PHP less than 5.4
    function sydney_toolbox_plugin_activation() {
    return Sydney_Toolbox::install();
    }
    register_activation_hook( __FILE__,) ‘sydney_toolbox_plugin_activation’ );

    Thread Starter singingfalls

    (@singingfalls)

    Spoke too soon. Went to begin edited Sydney an failed. Went to plugins and noticed another syntax fatal error when seeking a second time to activate the plugin. I am obviously in over my head. New fatal error:

    Parse error: syntax error, unexpected end of file in /home/public_html/surcp.org/wp-content/plugins/sydney-toolbox/sydney-toolbox.php on line 232

    • This reply was modified 2 years, 11 months ago by singingfalls.

    @singingfalls thank you for trying the code.

    Parse error: syntax error

    Perhaps you got the code from email (not directly from the thread), that is read differently for security reason in your email program.

    Here is the complete code you can review: https://drive.google.com/file/d/1wYgFo0JR0nw4nIWDiqq038ROqLOXgsQF/view?usp=sharing

    Regards,
    Kharis

    Thread Starter singingfalls

    (@singingfalls)

    @kharisblank What can I say? Thank you for your patience. I reinstalled wordpress, reinstalled sydney and the tool box plugin. Still no joy. Replaced the original .php with the one you sent and all is well. I am now able to activate the tool box without any problem. 5 ★’s for you excellent help.

    @singingfalls you’re most welcome!

    5 ★’s for you excellent help.

    Thanks for the 5-star. If you don’t mind, you may share your experience here, where other users will get inspired from.

    Have a nice day!

    Regards,
    Kharis

    I am having this very same issue with Sydney Toolbox.
    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class "sydney-toolbox" not found in /var/www/vhosts/delicatus.fi/httpdocs/wp-includes/class-wp-hook.php:303 Stack trace: #0 /var/www/vhosts/delicatus.fi/httpdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #1 /var/www/vhosts/delicatus.fi/httpdocs/wp-includes/plugin.php(470): WP_Hook->do_action() #2 /var/www/vhosts/delicatus.fi/httpdocs/wp-admin/plugins.php(193): do_action() #3 {main} thrown in /var/www/vhosts/delicatus.fi/httpdocs/wp-includes/class-wp-hook.php on line 303

    I would really appreciate help to resolve this issue as soon as possible.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Sydney Toolbox fatal error’ is closed to new replies.