Viewing 30 posts - 1 through 30 (of 34 total)
  • Author
    Posts
  • #1376312

    I have a wordpress theme using enfold and after enabling the theme getting this error.
    There has been a critical error on this website.

    #1376313
    This reply has been marked as private.
    #1376352

    Hi merrywatson,

    I tried to enable the theme on your site and could see the issue however I did not see any error_logs.
    Can you give us FTP access as well?
    Just post the credentials privately.

    Best regards,
    Nikko

    #1376406

    See below

    #1376489

    Any luck?

    #1376591

    Hi,

    Sorry for the late reply. I’ve renamed the parent and child theme for now, which gives you access to the backend of your site. When I try to activate the parent, the fatal error comes back though. Do you have server error logs which you could share with us please?

    Best regards,
    Rikard

    #1376600

    I will contact Go Daddy and see if they have a server error log. This error happened after I did the update to the theme.

    #1376601
    This reply has been marked as private.
    #1376614

    Hi,

    Thanks for the update. What happens if you deactivate all plugins? I tried checking your site again, but it seems to not be reachable at the moment. Please see private.

    Best regards,
    Rikard

    #1376617

    It is working for me. I have included my login details for WordPress.

    #1376625

    Hi,
    Please try disabling all of your plugins and then enable Enfold, then activate each plugin individually until you find the error again, this will point to which plugin is causing the conflict.

    Best regards,
    Mike

    #1376630
    This reply has been marked as private.
    #1376633

    Hi,
    Ok I have done that and your site is back to using twenty twenty three.
    I have not seen this before, it seems that it would be related to either your “must-use” plugins:
    object-cache.php
    System Plugin
    or your “Drop-in” plugins:
    db-error.php
    object-cache.php
    since they are the only ones activated, can you ask GoDaddy to disable these?
    So GoDaddy won’t show you the server logs?

    Best regards,
    Mike

    #1376642
    This reply has been marked as private.
    #1376643
    This reply has been marked as private.
    #1376647

    Hi,

    Thank you for the update.

    Yes, you have to add the code in the wp-config.php file in order to write errors in the log. We tried to access the server using the account above, but we were not able to get in. Please check the login credentials.

    You can also add the WP_DEBUG_DISPLAY constant and set it to true so that we can see the errors directly in the browser. Please check the documentation below for more info.

    // https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug_display

    Best regards,
    Ismael

    #1376650
    This reply has been marked as private.
    #1376655

    This is what Go Daddy sent me They said this is what on the site

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:2254 Stack trace: #0 /var/www/wp-content/themes/enfold/includes/admin/option_tabs/avia_performance.php(363): avia_count_active_plugins() #1 /var/www/wp-content/themes/enfold/includes/admin/register-admin-options.php(296): include(‘/var/www/wp-con…’) #2 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(252): include(‘/var/www/wp-con…’) #3 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(205): avia_superobject->_create_option_arrays() #4 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(153): avia_superobject->init() #5 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(563): avia_superobject::instance(Array) #6 /var/www/wp-content/themes/enfold/framework/avia_framework.php(101): AviaSuperobject(Array) #7 /var/www/wp-content/themes/enfold/functions.php(194): require_once(‘/var/www/wp-con…’) #8 /var/www/wp-settings.php(585): include(‘/var/www/wp-con…’) #9 /var/www/wp-config.php(97): require_once(‘/var/www/wp-set…’) #10 /var/www/wp-load.php(50): require_once(‘/var/www/wp-con…’) #11 /var/www/wp-blog-header.php(13): require_once(‘/var/www/wp-loa…’) #12 /var/www/index.php(17): require(‘/var/www/wp-blo…’) #13 {main} thrown in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2254
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php:59 Stack trace: #0 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php(59): array_search(‘gd-system-plugi…’, ”) #1 [internal function]: mwp_fail_safe() #2 {main} thrown in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php on line 59

    Then in the chat they said this:

    I have enabled the error on the site and it is showing the below error :

    /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2254

    The theme is causing the issue.

    #1376657
    This reply has been marked as private.
    #1376739
    This reply has been marked as private.
    #1376820

    Hi,

    Sorry for the delay. The theme is not active when we checked the site. Did you disable it?

    The error above traces back to the mu-plugins/gd-system-plugin, which is a rating system plugin if we are not mistaken and the /function-set-avia-frontend.php file, which is from the theme. Do you see the same error when you temporarily disable the plugin? The plugin is located in the wp-content/mu-plugins folder.

    Would you mind providing a screenshot of the actual error? You can use imgur, savvyify or dropbox for the screenshot. Thanks.

    Best regards,
    Ismael

    #1376823

    The theme is disabled because when I enable it, I get a white screen saying, “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
    Please see the explanation I sent to you on December 19 at 3:45 am.
    I copied the error message from the browser on December 19.
    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:2254 Stack trace: #0 /var/www/wp-content/themes/enfold/includes/admin/option_tabs/avia_performance.php(363): avia_count_active_plugins() #1 /var/www/wp-content/themes/enfold/includes/admin/register-admin-options.php(296): include(‘/var/www/wp-con…’) #2 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(252): include(‘/var/www/wp-con…’) #3 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(205): avia_superobject->_create_option_arrays() #4 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(153): avia_superobject->init() #5 /var/www/wp-content/themes/enfold/framework/php/class-superobject.php(563): avia_superobject::instance(Array) #6 /var/www/wp-content/themes/enfold/framework/avia_framework.php(101): AviaSuperobject(Array) #7 /var/www/wp-content/themes/enfold/functions.php(194): require_once(‘/var/www/wp-con…’) #8 /var/www/wp-settings.php(585): include(‘/var/www/wp-con…’) #9 /var/www/wp-config.php(97): require_once(‘/var/www/wp-set…’) #10 /var/www/wp-load.php(50): require_once(‘/var/www/wp-con…’) #11 /var/www/wp-blog-header.php(13): require_once(‘/var/www/wp-loa…’) #12 /var/www/index.php(17): require(‘/var/www/wp-blo…’) #13 {main} thrown in /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2254
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php:59 Stack trace: #0 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php(59): array_search(‘gd-system-plugi…’, ”) #1 [internal function]: mwp_fail_safe() #2 {main} thrown in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/init.php on line 59

    Then GoDaddy said this:
    I have enabled the error on the site and it is showing the below error :

    /var/www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2254

    The theme is causing the issue.

    GoDaddy enabled the theme twenty-twenty-three to allow me access to the back end.
    GoDaddy said to give you access to WordPress admin, and you would be able to fix it. I have put my login information into the Private Content.
    Are you saying that GoDaddy is wrong?
    I went to the FTP and tried to disable the plugin but it will not let me.
    mu-plugins/gd-system-plugin/
    This error came up Command: cd “/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin”
    Response: New directory is: “/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin”
    Command: mv “plugins” “plugins1”
    Error: mv /home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins /home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins1: received failure with description ‘Failure’

    GoDaddy said to do this, mu-plugins/gd-system-plugin/ plugins/worker and rename it and that didn’t work.
    Status: Renaming ‘/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins/worker’ to ‘/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins/worker1’
    Command: cd “/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins”
    Response: New directory is: “/home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins”
    Command: mv “worker” “worker1”
    Error: mv /home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins/worker /home/HEC0Mw=MoM9JUI/html/wp-content/mu-plugins/gd-system-plugin/plugins/worker1: received failure with description ‘Failure’

    Then GoDaddy said:
    Okay so as it is a system plug in it May not be disable , Please check with the developer and let us know if any thing else he suggested to do,

    Now what?

    #1376838

    Hi!

    We tried to access the site via SFTP but the authentication failed. Please check the credentials or provide another login account.

    To fix the issue with the function-set-avia-frontend.php temporarily, please edit the file and go to 2254. You should see the avia_count_active_plugins function, delete it, then replace it with this code.

    
    if( ! function_exists( 'avia_count_active_plugins' ) )
    {
    	function avia_count_active_plugins()
    	{
    	   $plugins = count( array[] );
    
    	   if( is_multisite() && function_exists( 'get_site_option' ) )
    	   {
    		   $plugins += count( array[] ) );
    	   }
    
    	   return $plugins;
    	}
    }

    You should be able to login to the site once this is corrected unless the plugin is actually causing the issue. You may need to contact the plugin authors for more info about the error generated by the plugin.

    Best regards,
    Ismael

    #1376904
    This reply has been marked as private.
    #1377134

    Ok so as of today, GoDaddy has enabled theme twenty and they said you could fix the code. I have included the login details for the

    #1377135
    This reply has been marked as private.
    #1377168

    Hello,

    I am having the exact same error – also hosting with GoDaddy.

    FYI,
    Greg

    #1377170

    This seems like the same issue – so I am replying on this thread… let me know if you want a new thread started.

    The site is: https://coffeeworks.com/

    This is the error I see:
    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:2256 Stack trace: #0 /home/coffeeworks/public_html/wp-content/themes/enfold/includes/admin/option_tabs/avia_performance.php(363): avia_count_active_plugins() #1 /home/coffeeworks/public_html/wp-content/themes/enfold/includes/admin/register-admin-options.php(296): include(‘/home/coffeewor…’) #2 /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(269): include(‘/home/coffeewor…’) #3 /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(220): avia_superobject->_create_option_arrays() #4 /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(166): avia_superobject->init() #5 /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/class-superobject.php(580): avia_superobject::instance() #6 /home/coffeeworks/public_html/wp-content/themes/enfold/framework/avia_framework.php(101): AviaSuperobject() #7 /home/coffeeworks/public_html/wp-content/themes/enfold/functions.php(215): require_once(‘/home/coffeewor…’) #8 /home/coffeeworks/public_html/wp-settings.php(585): include(‘/home/coffeewor…’) #9 /home/coffeeworks/public_html/wp-config.php(84): require_once(‘/home/coffeewor…’) #10 /home/coffeeworks/public_html/wp-load.php(50): require_once(‘/home/coffeewor…’) #11 /home/coffeeworks/public_html/wp-blog-header.php(13): require_once(‘/home/coffeewor…’) #12 /home/coffeeworks/public_html/index.php(17): require(‘/home/coffeewor…’) #13 {main} thrown in /home/coffeeworks/public_html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2256

    (I just started a new thread for my issue with Private Content relevant to site)

    • This reply was modified 1 year, 12 months ago by Donkies11. Reason: informing new thread started
    #1377303

    Hi,
    Donkies11, please create a new thread and post an admin login because it would not be private to post it here.
    So far we don’t know why this is but since it is occurring only on GoDaddy managed servers that have must-use plugins that can not be disabled:
    object-cache.php
    System Plugin
    db-error.php
    object-cache.php

    it would seem to be related to one of these, try asking GoDaddy to disable these for testing, or create a GoDaddy standard server staging site that doesn’t use these plugins.

    Best regards,
    Mike

    #1377398

    I received this notice from WordPress during the holidays. Maybe this is the issue.

    An error of type E_COMPILE_ERROR was caused in line 49 of the file /var/www/wp-content/themes/enfold.bk/config-templatebuilder/avia-shortcodes/chart/chart.php. Error message: Access level to avia_sc_chart::shortcode_insert_button() must be public (as in class aviaShortcodeTemplate)

Viewing 30 posts - 1 through 30 (of 34 total)
  • The topic ‘critical error with the theme’ is closed to new replies.