MyBB, for me, has cached the stylesheet at /cache/themes/theme2/css.php?stylesheet=6. When the server tries to get it, it thinks that there's a file called /cache/themes/theme2/css.php with a GET statement of ?stylesheet=6, not an actual file called css.php?stylesheet=6, so it's giving me a 404 error.
Reproduction steps? C'mon... you know the drill.
I dunno. MyBB just cached it on its own. Next thing I know, there's no stylesheet. I'll get some screens.
Image 1
Image 2
Well yeh, but you've got to give me details otherwise I'll have no clue where to start and I'll be blindly debugging and the change of me fixing it with just blind debugging is slim to none.
Did this happen directly after you installed? Did you edit a style sheet? Change permissions on a folder? Anything?
No. MyBB just started caching stuff. I didn't visit my 1.4 install for a while, then I visit it, running Beta 2, to upgrade, and it doesn't have the style applied to the forum. The only thing I've changed with the default style was the JS editor theme.
On digging around with the source code, I think I've figured out the problem. Whenever you do something like the following:
if(!cache_stylesheet($theme['tid'], str_replace('/', '', $mybb->input['name']), $theme['stylesheet']))
{
$db->update_query("themestylesheets", array('cachefile' => "css.php?stylesheet={$stylesheet['sid']}"), "sid='{$stylesheet['sid']}'", 1);
}
in the Admin CP, the next time around when you call "resync_stylesheet", it does a check to see if "MYBB_ROOT."cache/themes/theme{$stylesheet['tid']}/{$stylesheet['cachefile']}" exists, which, when you do the above edit, translates into MYBB_ROOT."cache/themes/theme2/css.php?stylesheet={$stylesheet['sid']}, I think....
Then again, now that I think about it, I remember not having EVERYTHING CHMODed to 0777. ./inc/languages, ./admin/backups, and ./cache/themes were not write-able at first, cause during the install, it only told me to CHMOD cache, the config and settings files, uploads, and uploads/avatars. Then, upon creating a plugin that uses the task system, I went to System Health to check out the Task Manager, when I noticed that MyBB was giving an error that not all folders were CHMODed, so I corrected that.
I am getting the same thing
This should probably fix it: It goes in admin/inc/. You may need to update a stylesheet in order to get it to fix itself.
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.