Hello everyone,
Ok, I am lost on this, and know that I spent days implementing a new theme, activated it, I am having the same issue as I was with my previous theme.
In short - it seems like my site (www.theblackvault.com) does not keep the .css styling, and I am forced to clear my cache multiple times to get it to 'reset' and revert to what it's support to look like.
I attached my cache settings. Youll notice, I disable cache for CSS. This doesn't help, but rather, makes matters worse. I attached also the two examples... and youll see part of the .css is lost, wherein my spacing and style is different.
I attached my APC settings from CPanel/WHM advanced php config editor. I changed a few things to try if it would fix - and nothing.
Not sure if this helps, but it seems to occur automatically, in the middle of the night for me. So, I am guessing it is during the 11pm cron job (default) or the 3am one. I didn't edit these, so whatever Dolphin does by default - that's when it seems to occur.
I can also usually replicate it by simply clearing my cache via Dolphin Admin. Clearing it once produces the issue, then clearing it 3, 4, sometimes 5+ times, will fix it.
I need help. I didn't always have this problem, but it started months ago and really need it fixed.
Thank you for any help.
|
I got this PM, but to be honest, I am a bit confused by it. Can anyone make sense of it? What am I doing wrong?
-------
Well,
In general, you are looking in a bit wrong direction.
Yes, you can enable css caching in dolphin, but in this case dolphin will get all css files (per every page separately), put it into a single cache file, and save this file in 'cache_public' directory.
But, frankly speaking, this way has more drawbacks than advantages. Because in this case, different pages have different CSS files (for your browser), because css files have different names. That's very bad in question of caching (by browser).
It is much better if you have same files per all your pages, even though this is not one css file (that would be perfect of course).
It is better to have 10 css files, but if they are the same per all pages, thus your browser will be able to cache all these 10 files to avoid loading something new if you navigate to another page.
Besides of it, you should know about another thing - server caching.
Every server can be adjusted, so it use special commands that tells about expiration of server resources. Css files can be described in this section too (in order to set a certain expiration time for your css files). Let's say - 30 days (that means - your browser will obtain a fresh version only after 30 days after css files were cached by browser).
However, if you force loading page with CTRL-F5 (or you clean your caches manually - in settings of your browser) - that expiration information will be forgotten of course, and the browser will download ALL sources again.
|
Your site looks fine on my end right now.
With many page views...
ManOfTeal.COM a Proud UNA site, six years running strong! |
yeah... Right now it does. But it happens at night during the cron jobs or when I clear the cache and I need to manually clear cache a ton of times to get it back to normal |
I am willing to pay if someone knows how to fix this. Please? |
To add some extra information, I added the site's source code when there is a problem (problem.txt) and when it's fine (correct.txt)
What sticks out is this when the site is NOT displayed correctly:
<body class="bx-def-font">
When it displays correctly, it reads:
<body class="bx-def-font home blog">
What permissions, file, etc. could cause this?
|
I think you need to be contacting your template maker.
Didn't ask this in the beginning but how do the site do with the ALT template?
ManOfTeal.COM a Proud UNA site, six years running strong! |
I was hoping it was the template. Unfortunately, using a new template, by a different programmer, produces the same result.
The previous programmer couldn't figure it out, so they gave me a refund. This new template works fine, but unfortunately, does the same thing...
|
for my custom templates (themes) - I only have one css stylesheet called custom.css. Try putting all of the template's styles on one page called custom.css - clear all caches (including browser ) and see if this helps resolve your issue. caredesign.net |
Have you tried switching to FILE instead of APC as a cache for a couple of days to rule out issues with APC?
If not, i suggest you try it.
And do you have any browser caching options in your .htaccess file?
https://www.deanbassett.com |
Yes, I did, I tried every setting here I could, including turning it all off, and no change.
Can you point me to a resource on what you mean about browsing caching options in .htaccess? I don't believe I do?
Have you tried switching to FILE instead of APC as a cache for a couple of days to rule out issues with APC?
If not, i suggest you try it.
And do you have any browser caching options in your .htaccess file?
|
I am hoping this may be related. When this issue happens and the site gets it's style messed up (which occurs during the cron job at 11pm Pacific time, I get emailed the following error. Can anyone assist me in fixing this? I am hoping once this is fixed, it will fix the above problem:
Subject line: Cron <root@god> /usr/local/bin/php -q /Deleted-the-path-/periodic/cron.php
- Temporary files check -
Total temp files: 13631
Deleted temp files: 819
<div style="border:2px solid red;padding:4px;width:600px;margin:0px auto;">
<div style="text-align:center;background-color:red;color:white;font-weight:bold;">Error</div>
<div style="text-align:center;">Database query error</div>
<div><b>Query:</b><br />DELETE FROM `avcha_views_track` WHERE `ts` < 1411452008</div><div><b>Mysql error:</b><br />Table 'blackvaultcom.avcha_views_track' doesn't exist</div><div style="overflow:scroll;height:300px;border:1px solid gray;">Found error in the file '<b>/home/theblack/public_html/inc/classes/BxDolViews.php</b>' at line <b>131</b>.<br />
Called '<b>query</b>' function with erroneous argument #<b>0</b>.<br /><br /><b>Debug backtrace:</b><br /><pre>Array
(
[1] => Array
(
[file] => /home/theblack/public_html/inc/classes/BxDolDb.php
[line] => 237
[function] => error
[class] => BxDolDb
[object] => BxDolDb Object
(
[error_checking] => 1
[error_message] => Table 'blackvaultcom.avcha_views_track' doesn't exist
[host] => localhost
[port] =>
[socket] =>
[dbname] => blackvaultcom
[user] => *****
[password] => *****
[link] => Resource id #28
[current_res] => Resource id #702
[current_arr_type] => 1
[oParams] => BxDolParams Object
(
[_oDb] => BxDolDb Object
*RECURSION*
[_oCache] => BxDolCacheFile Object
(
[sPath] => /home/theblack/public_html/cache/
)
[_sCacheFile] => sys_options_c4d0c7a7d56e83e7d1e1996547388483.php
[_aParams] => [truncated]
)
[oDbCacheObject] => BxDolCacheAPC Object
(
[iTTL] => 3600
)
)
[type] => ->
[args] => Array
(
[0] => Database query error
[1] =>
[2] => DELETE FROM `avcha_views_track` WHERE `ts` < 1411452008
)
)
|
[error_message] => Table 'blackvaultcom.avcha_views_track' doesn't exist Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information |
I can understand that - but I can't find anywhere where it is trying to access this table, and for what reason. I checked, and obviously the table doesn't exist. I know that. But what is telling Dolphin to clear out that table, the cache, etc.? I opened up the BxDolDb.php and BxDolViews.php and still see nothing.
This is line 131 it references in BxDolViews.php:
$iDeletedRecords += $GLOBALS['MySQL']->query("DELETE FROM `{$aSystem['table_track']}` WHERE `ts` < $iTime");
The screen shot of the sequence this line is in is attached.
|
DELETE FROM `{$aSystem['table_track']}` WHERE `ts` < $iTime
DELETE FROM `avcha_views_track` WHERE `ts` < 1411452008
$aSystem['table_track'] and $iTime are variables.
Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information |
Ok, I appreciate that, but that isn't helping. What I need to know, is where this variable is stored, why it's there, and how I can remove it so I can stop receiving this error, and see if this is what is screwing up my theme?
Where is the avcha... variable?
|
It's most likely stored in your template configuration file, but it seems the real issue is that the table doesn't exist.
Create the table and it's structure, see if that helps.
Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information |
Its most likely a entry in the sys_objects_views table for a views item for a module you no longer have installed. Look for a entry in that table with the name of avcha
That however has nothing to do with your template. The views table entries keep track of the number of times a item is viewed such as photos or videos. Correcting the problem most likely won't fix the issue.
Whats really odd. Is all of my sites, the body tag contains this.
<body class="bx-def-font">
And that is the norm. All dolphin websites are suppose to look like that. The boonex demo site does too. The only reason it would contain something else is if the <bx_injection:injection_body /> injection point is being populated, but in the template that is suppose to appear before the class="bx-def-font". In yours it is not. So something is not normal on your site.
https://www.deanbassett.com |
To add some extra information, I added the site's source code when there is a problem (problem.txt) and when it's fine (correct.txt)
What sticks out is this when the site is NOT displayed correctly:
<body class="bx-def-font">
When it displays correctly, it reads:
<body class="bx-def-font home blog">
What permissions, file, etc. could cause this?
This line. <body class="bx-def-font"> is actually a normal line. This one is not. <body class="bx-def-font home blog"> home and blog are not valid classes. Something is injecting them. Look at your templates _header.html
https://www.deanbassett.com |
deano: According to AndrewP, the theme creator (I am using zzz), that is normal. This is what he said:
I see that body's class is not the same as it is expected
It should be 'bx-def-font home blog', but at your website it is: 'bx-def-font home' only. This is in 'templates\tmpl_zzz\_header.htm' file
Plus, when it has blog and home is when it displays correctly.
I am so frustrated with this. I wish someone knew what was going on :( This has happened with multiple themes now -- the previous was hypernova.
|
blog and home in there for all pages or just the blogs home page. Perhaps it's different for each template. And it would be specific for that template as the default templates do not stick extra classes in there. I also don't believe the hypernova template does either.
So to me it seems like a error is occurring when the template parser is running which is preventing the templates cache from properly rebuilding.
Also due to the fact that this occurs at night when cron rebuilds the cache and when you manually clear it, and you have to do it several times before it finally takes indicates to me that a system overload is occurring and it thus fails in most cases.
So, how about information about the server your hosting on. Shared, VPS or Dedicated. PHP settings such as memory limit, ect. My next best guess is the server specs may not be good enough and the server is under to much of a load during cron runs trying to handle all that has to be done during those runs. https://www.deanbassett.com |
And what does your templates _header.html file look like?
The body line from that template. I went to your site, and it looks like all pages have the same body value. https://www.deanbassett.com |
I run my own dedicated server. CentOS platform.
Here is information on my PHP: http://www.theblackvault.com/phpinfo.php
What else would you need? I appreciate any help and guidance.
|
Fine the _header attached. |
Cache settings attached. I have tried different cache engines, and no luck. |
All that checks out.
I am at a loss. Out of ideas. https://www.deanbassett.com |
Anyone else? Could it have anything to do with the PHP Handler? DSO vs. CGI?
A file permission?
Anything?
If I've ever written anything in a begging fashion, this is it :( I really need to get this fixed.
|
I had exactly the same in 7.3.1
Ditched my hosting company (certified hosting) and don't have the same issue with new host (TMD) previous server was under spec massively but suited my needs while building the site.
But I do have cache issues still. Having switched off all caching while I build a brand new template from scratch following all guidance on here, when I turn on caching again, I lose all the css and the site is a mess.
I have a suspicion that it is being caused by either the addition of SSL to the site or a balls up in .htaccess version caused by TMD screwing up the transfer. As I was creating the new template, I did find myself having to reload css often but not every time.
I'm a total PHP novice so I have no hope of resolving this quickly if it is a .htaccess issue.
Hopefully my rambling on may spark some more suggestions. All are welcome right now!
Steve E |
Finally resolved!!
Enabled APC cache and some of the check boxes. See attached
Steve E |