Hey,
I’m using all-inkl.com as well, that should not be the problem. I suppose the problem is created in combination with the WordPress MU Domain Mapping-Plugin.
First you could try to set the tmp-folder manually. For this you’ll need to add the following to your wp-config.php:
define("SHARIFF_BACKEND_TMPDIR","/example/path/to/tmp");
Of course you need to adjust the path to a folder you would like to use for the temporary files shariff creates. Also make sure that the php-user has the right to write stuff to this folder.
Regards,
JP
IF you are using the WordPress MU Domain Mapping plugin I mentioned above, you might want to checkout the following thread in their support forum:
https://ww.wp.xz.cn/support/topic/sunrise-bug-with-36-headers-already-sent-and-wpdbescape?replies=31
Are you sure you are using the latest version of their plugin (0.5.5.1)? They changed these lines, because $wpdb->escape() is actually deprecated.
I am still working on it. Thank you for your help first of all. 😉
1. Yes I am using the MU Domain Mapping. And it is version 0.5.5.1 – but I didn’t exchange the sunrise.php – anyway, now the error is a different one: Warning: Creating default object from empty value in /www/XXX/wp-content/sunrise.php on line 9 Fatal error: Call to undefined method stdClass::prepare() in /www/XXX/wp-content/sunrise.php on line 15
Could it be a problem that I am using HTTPS on my site?
2. Setting the temp folder helped. But I mistyped the path and the error said the folder wasn’t writable. Maybe you could add a check if the folder actually exists. 😉
It seems to be a problem with MU Domain Mapping. The domain for my site is not set and I can’t add it. I am going to fix that and come back and tell you the results. Thank you! 😉
Whoop Whopp!
I added
global $wpdb;
at the beginning of sunrise.php and now it works perfectly. 😀
If you want to see it in action: https://kaffeeringe.de/ 😉
Glad that you got it working and thank you for sharing the solution with us. Always useful for other users to know, what the problem was.
Cheers,
JP
P.S.: I will add a check, if the cache-folder exists for the future 😉