Looks like there is another open_basedir issue here (this setting is quite a pain in the arse)...
I noticed I had 4 errors in the error log after installing Wedge:Quote Line 766,
Code: [Select] Line 553,
Code: [Select]
The open_basedir setting on my host does have a value according to phpinfo(). Resetting the file cache reproduced these errors, so it seems iterating through the cached CSS and JS files are a problem.
After looking at this,
https://bugs.php.net/bug.php?id=47358
It seems glob() is returning boolean false rather than an empty array. Obvious fix: check beforehand whether it's false and if so make it an empty array.
I noticed I had 4 errors in the error log after installing Wedge:
2: Invalid argument supplied for foreach()
File: /home/projecte/public_html/dexterslab/wedge/Sources/Subs-Cache.php
Line: 766
2: Invalid argument supplied for foreach()
File: /home/projecte/public_html/dexterslab/wedge/Sources/Subs-Cache.php
Line: 553
foreach (glob($jsdir . '/' . $id. '*' . $ext) as $del)foreach (glob($final_folder . '/' . ($id ? $id . '-*' : '[0-9]*') . $ext) as $del)The open_basedir setting on my host does have a value according to phpinfo(). Resetting the file cache reproduced these errors, so it seems iterating through the cached CSS and JS files are a problem.
After looking at this,
https://bugs.php.net/bug.php?id=47358
It seems glob() is returning boolean false rather than an empty array. Obvious fix: check beforehand whether it's false and if so make it an empty array.
This topic was marked solved by 




