Timeline for Critical error on image display
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 27 at 22:23 | comment | added | Arizona Web Development | hope so too - it should release in a couple days and we will find out :) | |
| Apr 27 at 18:06 | comment | added | StefanMz | Yes, great, that's it. Thank you! However, the temporary fix mentioned by core.trac.wordpress.org/ticket/63285#comment:15 doesn't quite help. It does avoid the fatal error, but then I get 404 for all images. I hope, that WP 6.8.1 will fix the problem completely. Thanks again for all the ideas and recommendations. | |
| Apr 27 at 15:55 | comment | added | Arizona Web Development | here is the actual ticket of the issue: core.trac.wordpress.org/ticket/63285 | |
| Apr 27 at 15:47 | comment | added | Arizona Web Development | Oh - In WordPress 6.8, a change introduced a call to the is_super_admin() function within ms-files.php. However, this function isn't available when WordPress is loaded with the SHORTINIT constant set to true, which is common in legacy setups using ms-files.php. This mismatch leads to the fatal error you're experiencing. It looks like they are going to fix this in 6.8.1 - gutenbergtimes.com/… | |
| Apr 27 at 13:02 | comment | added | StefanMz | WP bootstrap is loaded in ms-files.php by require_once dirname( __DIR__ ) . '/wp-load.php'; which loads wp-config.php which loads wp-settings.php which loads capabilities.php which defines the function is_super_admin(). Thus, this function - which is missing according to the fatal PHP error (see UPDATE-2) - is defined before being called. Or at least should be, because something went wrong. | |
| Apr 26 at 21:57 | comment | added | Arizona Web Development | Can you try to add require_once dirname( _DIR_ ) . '/wp-load.php'; to the top of ms file that was giving critical error - perhaps that will solve the issue as I think the super admin function was not loaded...but again its really hard to tell without seeing the contents of your error log to know for sure | |
| Apr 26 at 20:13 | comment | added | StefanMz | This would store/access files directly, yes, but all of them in wp-content/uploads. However, I have a running multisite with a structure described above: wp-content/blogs.dir/N/files - where N is the number of the site (N-Max=10 in my case). If I understand ms-files.php correctly, I need its function to serve the right subsite directory for uploaded files. | |
| Apr 26 at 18:57 | history | answered | Arizona Web Development | CC BY-SA 4.0 |