-
AuthorPosts
-
June 28, 2023 at 5:03 am #1411906
We attempted to upgrade from Enfold 4.8.7.1 to the newest version that we just purchased and downloaded from ThemeForest. It was used by a previous developer to design the site and the theme was purchased under his license and not updated in some time. After uploading & installing Enfold, when we activated the associated Child theme, we received the, “There has been a critical error on this website,” message. The front end crashed, but the admin area was still functional (weird). We are running PHP 8.1 with Flywheel as our host. Upon inspection of the error logs we found the cause PHP Fatal error: Uncaught Error: Call to undefined method avia_partner_logo::default_args() in /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:778. Are you able to shed any light on what we need to do so that we can continue running the Enfold theme in its latest version? Please and thank you.
June 28, 2023 at 7:09 am #1411924Hi infoglemser,
Please create a temporary admin account and put the credentials in private content, so we can try to check on the issue further.
Best regards,
NikkoJune 28, 2023 at 6:00 pm #1411972Sure, here ya go. Thanks!
June 28, 2023 at 7:42 pm #1411992Hi,
Thanks for that. Please share FTP login details with us as well, so that we can try to upload the new version for you.
Best regards,
RikardJune 28, 2023 at 10:37 pm #1412005It’s SFTP through Flywheel hosting.
June 29, 2023 at 10:37 am #1412042can you look inside that logoslider.php and post that line 778 to see what is the issue?
Best would be to update to latest Enfold – with php 8 alot has changed – f.e. jQuery versions are now : 3.x and inside that new jQuery there are some deprecated functions.June 29, 2023 at 11:02 am #1412052Hi,
Thanks for that. I uploaded the latest version of the theme and activated it, and everything is working after that, but the site crashes when your child is activated. Please try to remove all custom code you have added to the child, then activate the new version by renaming the enfold_new folder in the themes folder. Rename the current enfold folder to enfold_old before that. Once the site is working with the new version and the empty child, then you can start adding your custom code back in one by one to the child, to see when it starts crashing.
Best regards,
RikardJune 29, 2023 at 6:56 pm #1412094@Guenni007: For me, line 778 is as follows: */
Which makes no sense.June 29, 2023 at 7:00 pm #1412095@Rikard Can you help me narrow down the number of files I would need to do this to? There are quite a few. Would it definitely be a PHP file or could it be a css or js file?
June 29, 2023 at 8:10 pm #1412102Hi,
It would likely be a PHP file, since it’s generating a server error.
Best regards,
RikardJune 30, 2023 at 4:37 am #1412124@Rikard Utilizing your recommended method, I was able to determine that it was the functions.php file in the child theme that was crashing the site. The code from that file in its entirety appears below. I then deleted the code line by line and discovered it was require_once(‘inc/avia-partner-logo.php’); that was causing the crash. Do you have any idea why this might be? I’ve removed the line of code for now, but I’m unsure of what it might be powering on the site as of yet.
<?php
require_once(‘inc/theme-functions.php’);
require_once(‘inc/scripts-child.php’);
require_once(‘inc/theme-filters.php’);
require_once(‘inc/avia-partner-logo.php’);
require_once(‘inc/custom-post-types.php’);
require_once(‘inc/avia-boxes.php’);
require_once(‘inc/disable-google-maps.php’);// require_once(‘inc/theme-shortcodes.php’);
// require_once(‘inc/avia_new_section.php’);
// require_once(‘inc/pardot-iframe.php’);
// require_once(‘inc/avia-boxes.php’);
// require_once(‘inc/show-template-shortcode.php’);
// require_once(‘inc/hp-modal-popup.php’);
// require_once(‘inc/footer-highlight-widget.php’);
// require_once(‘inc/custom-post-types.php’);add_theme_support(‘deactivate_layerslider’);
June 30, 2023 at 4:48 am #1412126@Rikard I do notice that all our hero images are now missing since I removed that line of php. You can see an example of what it’s supposed to look like if you visit the Wayback Machine at https://web.archive.org/web/20230613162444/https://glemser.com/
June 30, 2023 at 11:02 am #1412145Hi,
This part can be removed since it’s commented out and should not do anything:
// require_once(‘inc/theme-shortcodes.php’); // require_once(‘inc/avia_new_section.php’); // require_once(‘inc/pardot-iframe.php’); // require_once(‘inc/avia-boxes.php’); // require_once(‘inc/show-template-shortcode.php’); // require_once(‘inc/hp-modal-popup.php’); // require_once(‘inc/footer-highlight-widget.php’); // require_once(‘inc/custom-post-types.php’);
This is not required anymore, it can now be set in the theme options under Enfold->Layout Builder:
add_theme_support(‘deactivate_layerslider’);
The rest I can’t really tell you unfortunately, since I don’t know what has been done in those files. I would recommend that you remove all of the code, then add it back line by line to see when it starts breaking:
require_once(‘inc/theme-functions.php’); require_once(‘inc/scripts-child.php’); require_once(‘inc/theme-filters.php’); require_once(‘inc/avia-partner-logo.php’); require_once(‘inc/custom-post-types.php’); require_once(‘inc/avia-boxes.php’); require_once(‘inc/disable-google-maps.php’);
Best regards,
RikardJune 30, 2023 at 4:43 pm #1412186@Rikard I narrowed it down to this line:
require_once(‘inc/avia-partner-logo.php’);
and removed it. I do notice that all our hero images are now missing since I removed that line of php. You can see an example of what it’s supposed to look like if you visit the Wayback Machine at https://web.archive.org/web/20230613162444/https://glemser.com/
July 3, 2023 at 10:57 am #1412313 -
AuthorPosts
- You must be logged in to reply to this topic.