-
AuthorPosts
-
December 15, 2022 at 11:31 pm #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.December 15, 2022 at 11:35 pm #1376313This reply has been marked as private.December 16, 2022 at 7:15 am #1376352Hi 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,
NikkoDecember 16, 2022 at 1:37 pm #1376406See below
December 17, 2022 at 6:11 pm #1376489Any luck?
December 18, 2022 at 2:13 pm #1376591Hi,
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,
RikardDecember 18, 2022 at 4:27 pm #1376600I will contact Go Daddy and see if they have a server error log. This error happened after I did the update to the theme.
December 18, 2022 at 4:39 pm #1376601This reply has been marked as private.December 18, 2022 at 9:17 pm #1376614Hi,
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,
RikardDecember 18, 2022 at 9:54 pm #1376617It is working for me. I have included my login details for WordPress.
December 18, 2022 at 11:02 pm #1376625Hi,
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,
MikeDecember 18, 2022 at 11:35 pm #1376630This reply has been marked as private.December 18, 2022 at 11:54 pm #1376633Hi,
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,
MikeDecember 19, 2022 at 12:54 am #1376642This reply has been marked as private.December 19, 2022 at 12:58 am #1376643This reply has been marked as private.December 19, 2022 at 2:41 am #1376647Hi,
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,
IsmaelDecember 19, 2022 at 3:13 am #1376650This reply has been marked as private.December 19, 2022 at 3:45 am #1376655This 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.
December 19, 2022 at 3:56 am #1376657This reply has been marked as private.December 19, 2022 at 3:31 pm #1376739This reply has been marked as private.December 20, 2022 at 4:43 am #1376820Hi,
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,
IsmaelDecember 20, 2022 at 7:59 am #1376823The 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?
December 20, 2022 at 10:08 am #1376838Hi!
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,
IsmaelDecember 20, 2022 at 4:22 pm #1376904This reply has been marked as private.December 22, 2022 at 5:23 pm #1377134Ok 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
December 22, 2022 at 5:27 pm #1377135This reply has been marked as private.December 23, 2022 at 1:06 am #1377168Hello,
I am having the exact same error – also hosting with GoDaddy.
FYI,
GregDecember 23, 2022 at 2:09 am #1377170This 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, 11 months ago by Donkies11. Reason: informing new thread started
December 24, 2022 at 9:10 pm #1377303Hi,
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,
MikeJanuary 2, 2023 at 9:09 pm #1377398I 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)
-
AuthorPosts
- The topic ‘critical error with the theme’ is closed to new replies.