Twenty Eleven and php8.0
-
I am having problems with the switch php7.4 to php8.0: All plugins updated (NextGEN gallery is the only one I use). Theme Twenty Eleven version 4.5. WordPress 6.4.1
With switch from php7.4 to php8.0 I get
“error thrown call to undefined function create_function()”
The “fatal error” seems to be linked with this theme and hints to “create_function()” in wp-config.php. I have commented this code. Now it looks
if(is_admin()) {
/** add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ )); */
define( ‘FS_CHMOD_DIR’, 0751 );
}And using php8.0 everything seems to run smoothly. BUT: Is this a good idea? A more experienced IT colleague recommended
if(is_admin()) {
?? ?add_filter(‘filesystem_method’, function(‘$a’){ return “direct”;});
???? define( ‘FS_CHMOD_DIR’, 0751 ); }But this results in a white screen!
The page I need help with: [log in to see the link]
- The topic ‘Twenty Eleven and php8.0’ is closed to new replies.