Open criterion9 opened 6 years ago
Hi @Dillon-Brown I would love to work on this issue..
@asprazz I think you can go ahead and do it! Thanks!
I don't know if it's at all relevant but while fixing the separate issue #7748 related to [FATAL] Chart class not found I appear to have changed the incidence of this issue arising.
The fix was to extract /include/SugarCharts/Jit from an upgrade zip (7.11.x -> 7.11.8). This fixed the error in suitecrm.log but also since applying, I haven't seen the php error message about the cache/index.php. Early days but the system also "feels" much more responsive. WIll watch for a couple of days and see if it's stable.
Rgds
@pgorod Do you know if anyone ever worked on this or fixed this? I'm seeing this behavior in v7.11.15
@isleshocky77 to my knowledge, nothing happened
Unless @asprazz has something to tell us?
@isleshocky77 to my knowledge, nothing happened
Unless @asprazz has something to tell us?
Gotcha. Thanks for the quick reply. For now i'm just putting in a rewrite rule to handle this.
https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/19134-cache-index-php-not-found-or-unable-to-stat has more of the dialog. It appears to impact multiple sub-themes (only tried 2) and doesn't occur on each request. Did not take the time to narrow down which modules are impacted.
Issue
css files using relative paths for url() do not always reach the entry point index.php and instead attempt to load ./cache/index.php and since there is no such file the apache error.log has rows of 404 errors.
Expected Behavior
no 404 errors and correct relative path usages in css files.
Actual Behavior
css files are attempting to load an index.php that doesn't exist to load theme elements and errors are thrown to the apache error.log. This is particularly problematic for systems that have automated security response to block repeated sniffing behaviors (generally repeated 404 errors in quick succession) as a single page load could have 4 or more 404 entries.
Possible Fix
Relative pathing isn't consistent with the number of up directories (../../../../ vs ../../../../../). All css build scripts should be checked for relative pathing issues.
Steps to Reproduce
Context
In our organization's case we would have what appeared to be security events triggered on crm users who would then be automatically blocked from systems access. Temporarily we put an empty index.php file in ./cache which prevents the 404 error from getting thrown and subsequently blocking valid users.
Your Environment