-
-
Hi, our site was down today, and apparently it was due to the codeless framework plugin. However, after updating the theme to the latest version, we have not been able to get the site up and running.
Both the Child Theme and Theme show different errors when activated.
Child errors:
Deprecated: Function create_function() is deprecated in /www/wp-content/themes/tower-child/functions.php on line 10 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302
Theme errors:
Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302- This topic was modified 4 years, 5 months ago by FiveArts.
-
If I try to remove the deprecated code in /www/wp-content/themes/tower-child/functions.php on line 10 . I get the following errors:
Your PHP code changes were rolled back due to an error on line 5 of file /www/wp-content/themes/tower-child/includes/view/page_header.php. Please fix and try saving again.
Uncaught Error: Class 'Redux' not found in /www/wp-content/themes/tower-child/includes/view/page_header.php:5 Stack trace: #0 wp-includes/template.php(724): require() #1 wp-includes/template.php(671): load_template('/www/wp-content...', false) #2 wp-includes/general-template.php(168): locate_template(Array, true, false) #3 /www/wp-content/themes/tower/page.php(27): get_template_part('includes/view/p...') #4 wp-includes/template-loader.php(78): include('/www/wp-content...') #5 wp-blog-header.php(19): require_once('wp-i...') #6 /www/index.php(17): require('wp-b...') #7 {main} thrown
-
I have tried deleting the theme and reinstalling it via FTP. The following errors are still prevalent:
Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 294 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘name’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302 Notice: Trying to get property ‘term_id’ of non-object in /www/wp-content/themes/tower/includes/core/codeless_elements.php on line 302
Plus all the customisation – logos, template settings, are still gone
-
I have since tried installing the latest theme update, which was released in (around) the last 24-hours, by first deleting the theme folder via FTP, as well as the Envato Market, Layer Sliver, WP Bakery Page Builder and Revolution Slider folders and then copying the relevant folders from the 27 November update in.
Error we get:
Warning: require_once(/wordpress/wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php): failed to open stream: No such file or directory in /www/wp-content/plugins/codeless-framework/admin/register-shortcodes.php on line 3 Fatal error: require_once(): Failed opening required ‘/wordpress/wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php’ (include_path=’.:/usr/share/php’) in /www/wp-content/plugins/codeless-framework/admin/register-shortcodes.php on line 3The site is experiencing technical difficulties.
- This reply was modified 4 years, 5 months ago by FiveArts.
-
Fresh install of the Theme, with only the following plugins active: Envato Market, Envato WordPress Tools, Codeless Framework plugin, Revolution Slider, Layer Slider, WP Bakery page Builder.
Site does not load. The following error is displayed:
Warning: require_once(/wordpress/wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php): failed to open stream: No such file or directory in /www/wp-content/plugins/codeless-framework/admin/register-shortcodes.php on line 3 Fatal error: require_once(): Failed opening required ‘/wordpress/wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php’ (include_path=’.:/usr/share/php’) in /www/wp-content/plugins/codeless-framework/admin/register-shortcodes.php on line 3
The site is experiencing technical difficulties.
** I will now put the site in maintenance mode by installing WP Maintenance Mode** -
Hello,
Please add some wp and ftp credentials in a private reply. So we can check it closely.
Best regards!
-
-
Hello,
I see that your path is wordpress/wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php wrong.
The “wordpress” directory doesn’t exist.
Have you changed any hosting or any folder name.
Also, I see that you use a managed WordPress hosting provider. Please contact them and tell them about the directory problem.
Let us know.
Regards!
-
Hi there Ruco,
I have been in touch with the hosts, and I shall share their two messages below:
Message 1:
Thank you for getting back to us! That’s very helpful information. Sites running on the Flywheel Cloud Platform do store the WordPress core files in separate directories as a part of our management of the WordPress core and its security.
Taking a look at the PHP line in the file throwing the error,
/www/wp-content/plugins/codeless-framework/admin/register-shortcodes.php on line 3
we can see the following code:
1Message 2:
… the recommended course of action is to contact the theme/plugin developer for a resolution.It would be worthwhile reaching out to the theme/plugin developers to see if they have any plans or options available to limit the use of ABSPATH when calling plugin files.
Once you’ve reached out to them, let us know if there is anything we need to do from the Hosting side to assist.
*********
What should be the next step, Ruco?
-
Hello,
I have resolved this issue by replace the ABSPATH into get_template_directory().
In the next update will fix this issue.
You can continue to work without any problem now.
Sorry for any inconvenience.
Regards!
-
Thank you very much for that Ruco.
We do appreciate it. Can I ask, would you mind making the change to the staging site as well, please?
Best Wishes,
FiveArts -
Hello,
Please go to your stage site’s and open file wp-content/plugins/codeless-framework/admin/register-shortcodes.php
Find this line:
require_once ABSPATH .'wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php' ;
Edit to this:
require_once get_template_directory() . 'wp-content/plugins/codeless-framework/admin/core/shortcodes/shortcodes.php' ;
Save changes.
Best regards!
-
You must be logged in to reply to this topic.