Since yesterday, I have permanent errors linked to this module :
Warning: Creating default object on line in /wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29
Fatal error: Constant expression contains invalid operations in /wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 26
I have already updated the theme, I'm using a child theme and running Apache + PHP 7.4
Could you try and downgrade PHP on your server that is try any other version below 7.4 but at and higher than 5.6.
If that has not effect on this issue confirm to us where you are getting the error or during which tasks and we will forward this to the developers to take a closer look.
Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.
Warning: Creating default object from empty value in /usr/home/lasfor.com.ar/web/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29
When I upload Salient folder via FTP there's a moment when FileZilla asks me to "replace" some files, I tried overwriting them and skip them but the error still shows up.
When I upload it from Wordpress Dashboard, the website crashes.
Where can I send you Wordpress log in user of the website?
This is a duplicate question from this ticket, for the sake of providing everyone with the answer I'll post the same answer and solution here:
This core error can be solved by adding the following line above line 31 in the file named class.redux_filesystem.php.
$this->parent = new stdClass();
Bug is semi-caused by the 7.4 PHP update that will throw an error when creating an object from a falsy variable.
From PHP 7.4 upgrading info:
The "creating default object from empty value" warning is now consistently thrown if a falsy value is promoted into an stdClass object. Previously some cases like `$null->prop = $val` missed this warning.
Since yesterday, I have permanent errors linked to this module :
Warning: Creating default object on line in /wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29
Fatal error: Constant expression contains invalid operations in /wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 26
I have already updated the theme, I'm using a child theme and running Apache + PHP 7.4
Hi Ov3rl0rd,
Could you try and downgrade PHP on your server that is try any other version below 7.4 but at and higher than 5.6.
If that has not effect on this issue confirm to us where you are getting the error or during which tasks and we will forward this to the developers to take a closer look.
Thanks.
Hello Andrew,
I have performed a downgrade to 7.2 and 6.0 but without any success.
I have also tried to replace $parent = null with $parent = array(); for instance, as suggested on the Envato forum.
It seems it could be linked to a plugin called "Redirection" (https://fr.wordpress.org/plugins/redirection/) that I am using BUT never had any issue before.
This plugin requires JSON (via [URL]/wp-json/) generated by Wordpress Rest API.
In my point of vue the issue is solved but I don't know how I did it... Sorry that this post cannot help people more.
Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.
Thanks
ThemeNectar Support Team
Hi! I'm having the same issue:
Warning: Creating default object from empty value in /usr/home/lasfor.com.ar/web/wp-content/themes/salient/nectar/redux-framework/ReduxCore/inc/class.redux_filesystem.php on line 29
When I upload Salient folder via FTP there's a moment when FileZilla asks me to "replace" some files, I tried overwriting them and skip them but the error still shows up.
When I upload it from Wordpress Dashboard, the website crashes.
Where can I send you Wordpress log in user of the website?
Thanks!
Hi
You can send as a reply to this mail.
Kind Regards
@joacos09 . Please create a new ticket with your login credentials so we can take a look.
Please update to Salient Theme Version 11.0.4 and Salient WPBakery Page Builder 6.1 .
To get a list of Bug Fixes and new Feature addons in the Latest Theme update, the changelog can be viewed here : http://themenectar.com/changelogs/salient.html .
Update the theme by following this guide: http://themenectar.com/docs/salient/important-salient-update-for-new-envato-requirements/ and http://themenectar.com/docs/salient/updating-salient/
Best.
ThemeNectar Support Team
This is a duplicate question from this ticket, for the sake of providing everyone with the answer I'll post the same answer and solution here:
This core error can be solved by adding the following line above line 31 in the file named class.redux_filesystem.php.
$this->parent = new stdClass();
Bug is semi-caused by the 7.4 PHP update that will throw an error when creating an object from a falsy variable.
From PHP 7.4 upgrading info:
The "creating default object from empty value" warning is now consistently thrown if a falsy value is promoted into an stdClass object. Previously some cases like `$null->prop = $val` missed this warning.Source: https://tracker.moodle.org/browse/MDL-67307