I agree, core shouldn't cache error messages. I was already looking into that direction.mortenb wrote:Even though the cause is external it seems like the reason is a not too fail-safe caching system in CMSMadesimple.
Html blob 'global_content_block_x' does not exist
Re: Html blob 'global_content_block_x' does not exist
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Html blob 'global_content_block_x' does not exist
Was there ever any resolution to this issue? We are now seeing the same problem.
LadyHLG
LadyHLG
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: Html blob 'global_content_block_x' does not exist
Not for me. I transferred all my GCBs and put them direct in the Pages. No crashes since. From my last post in the thread you can see it looked like the Twitter module. Suggest moving away from that if you use it.LadyHLG wrote:Was there ever any resolution to this issue
Re: Html blob 'global_content_block_x' does not exist
Unfortunately I don't use that module so that can't be the cause for our site. Removing all the GCBs isn't really an option for me we have a very extensive site.
Re: Html blob 'global_content_block_x' does not exist
If you do NOT let editors change content of GCBs consider reading this (about template inheritance): http://www.i-do-this.com/blog/Smarty-te ... -Simple/57LadyHLG wrote:Unfortunately I don't use that module so that can't be the cause for our site. Removing all the GCBs isn't really an option for me we have a very extensive site.
Template inheritance can be an alternative to using GCBs.
Re: Html blob 'global_content_block_x' does not exist
I had no idea you could do that!
I definitely have some rethinking to do on my templates and GCBs!
Thank-you for the information!
LadyHLG
I definitely have some rethinking to do on my templates and GCBs!
Thank-you for the information!
LadyHLG
Re: Html blob 'global_content_block_x' does not exist
Is it because of facebook's open graph? I am experiencing this problem for the first time since 2007 or 06 when I first started using CMSMS which makes me think it's not CMSMS.
I have a very large site it's happening to and it pains me to have to move all of the global content blocks in to the templates. Pain. I don't actually have to clear cache to make it work again, I just go up to any GCB and hit apply and the site "sees" the missing blocks again. So very odd.
Check this thread out, see the last answer:
http://stackoverflow.com/questions/1152 ... 2#13276722
I have a very large site it's happening to and it pains me to have to move all of the global content blocks in to the templates. Pain. I don't actually have to clear cache to make it work again, I just go up to any GCB and hit apply and the site "sees" the missing blocks again. So very odd.
Check this thread out, see the last answer:
http://stackoverflow.com/questions/1152 ... 2#13276722
Re: Html blob 'global_content_block_x' does not exist
Have been fighting with this issue for a few days so glad (sort of) to see it's not just me. Same issue as seen by others >>> html blobs not found.
Once I clear the cache or save a GCB the issue goes away. The issue reoccurs every morning. Don't understand why - but it does. I presume the cached files are getting cleared every X hours.
I have found the issue on 2 sites so I am at least able to test some different fixes. I don't use the 'Twitter' module or plugin referred to by others.
I have checked every GCB & UDT & plugin that is used. I have made a few changes to code so will wait an see what tomorrow brings.
Hopefully someone will find the root cause (or even just how to get the issue to reproduce on demand) to move us all to a fix.
Once I clear the cache or save a GCB the issue goes away. The issue reoccurs every morning. Don't understand why - but it does. I presume the cached files are getting cleared every X hours.
I have found the issue on 2 sites so I am at least able to test some different fixes. I don't use the 'Twitter' module or plugin referred to by others.
I have checked every GCB & UDT & plugin that is used. I have made a few changes to code so will wait an see what tomorrow brings.
Hopefully someone will find the root cause (or even just how to get the issue to reproduce on demand) to move us all to a fix.
Re: Html blob 'global_content_block_x' does not exist
Look in your raw access logs, do you see this:
I've removed open graph and so far this is not happening.
There's this script which I don't know know what to do with (anyone?):
Source: http://stackoverflow.com/a/13276808/1004312
Code: Select all
facebookexternalhit/1.1
There's this script which I don't know know what to do with (anyone?):
Source: http://stackoverflow.com/a/13276808/1004312
In PHP, execute the following code as quickly as possible for every request.
Code: Select all
define( 'FACEBOOK_REQUEST_THROTTLE', 2.0 ); // Number of seconds permitted between each hit from facebookexternalhit
if( !empty( $_SERVER['HTTP_USER_AGENT'] ) && preg_match( '/^facebookexternalhit/', $_SERVER['HTTP_USER_AGENT'] ) ) {
$fbTmpFile = sys_get_temp_dir().'/facebookexternalhit.txt';
if( $fh = fopen( $fbTmpFile, 'c+' ) ) {
$lastTime = fread( $fh, 100 );
$microTime = microtime( TRUE );
// check current microtime with microtime of last access
if( $microTime - $lastTime < FACEBOOK_REQUEST_THROTTLE ) {
// bail if requests are coming too quickly with http 503 Service Unavailable
header( $_SERVER["SERVER_PROTOCOL"].' 503' );
die;
} else {
// write out the microsecond time of last access
rewind( $fh );
fwrite( $fh, $microTime );
}
fclose( $fh );
} else {
header( $_SERVER["SERVER_PROTOCOL"].' 503' );
die;
}
}
Re: Html blob 'global_content_block_x' does not exist
Thanks carasmo. This definitely pointed me in the right direction.
The site was broken again this morning, despite now having all GCBs removed. It looks like something had broken smarty enough to stop anything being served by {cms_stylesheet}.
Looking in the server log showed only 2 requests by the msnbot, between the site working and the site being broken:(Note: new site, poorly indexed )
I also could not clear the error by clearing the CMSMS cache. By turning on debug output I found that the site breaks when trying to determine the device resolution, by CGSmartImage:
I was able to get the site working by turning CGSmartimage Enable Responsive Images: to 'No'. Initially I could repeat the fault by turning Responsive Images to 'Yes', but now I can't recreate the fault. grrrr.
Again I have the site fully working, but am not certain (again) what will happen overnight. I suspect what I am finding here is just a symptom rather than a root cause.
Site Info:
----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
CGExtensions: 1.41.2
ModuleManager: 1.5.8
News: 2.14.4
CGSimpleSmarty: 1.7.4
CGGoogleMaps: 2.4.7
CGSmartImage: 1.16.2
FormBuilder: 0.7.3
Gallery: 2.0.1
SiteMapMadeSimple: 1.2.8
CustomGS: 2.1
ECB: 1.6
GBFilePicker: 1.3.3
ListIt2: 1.4.1
CGFeedMaker: 1.0.20
TemplateExternalizer: 2.1.3
ListIt2XDefs: 1.2
ListIt2Widgets: 1.4.1
JQueryTools: 1.2.6
CMSPrinting: 1.0.5
MicroTiny: 1.2.7
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.4.31
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 120
output_buffering: 1
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.68
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
Server Time Diff: No filesystem time difference found
----------------------------------------------
The site was broken again this morning, despite now having all GCBs removed. It looks like something had broken smarty enough to stop anything being served by {cms_stylesheet}.
Looking in the server log showed only 2 requests by the msnbot, between the site working and the site being broken:
Code: Select all
65.55.215.37 - - [21/Aug/2014:00:02:54 +0100] "GET /robots.txt HTTP/1.1" 200 113 "-" "msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)"
65.55.215.37 - - [21/Aug/2014:00:02:54 +0100] "GET /uploads/_CGSmartImage/img-348bd43a6157673464e98b15175aa11f.jpg HTTP/1.1" 200 46146 "-" "msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)"
I also could not clear the error by clearing the CMSMS cache. By turning on debug output I found that the site breaks when trying to determine the device resolution, by CGSmartImage:
Code: Select all
Loading /home/xyz/public_html/modules/CGExtensions/lib/class.Browser.php = 146336 bytes for an approximate total of 2762788
Debug: (0.595021) - (usage: 9794436) - (peak: 9824980)
Loading /home/xyz/public_html/modules/CGExtensions/lib/class.cge_browser.php = 195808 bytes for an approximate total of 2958596
Debug: (0.618152) - (usage: 9809712) - (peak: 9866592)
Loading /home/xyz/public_html/modules/CGSmartImage/lib/class.cgsi_devicecapabilities_client.php = 2432 bytes for an approximate total of 2961028
Debug: (0.618229) - (usage: 9806904) - (peak: 9876896)
Loading /home/xyz/public_html/modules/CGSmartImage/lib/class.cgsi_DeviceAtlasPersonal_client.php = 9412 bytes for an approximate total of 2970440
Debug: (0.618276) - (usage: 9802952) - (peak: 9877264)
calling deviceatlas to get browser capabilities
Debug: (0.61856) - (usage: 9813992) - (peak: 9877264)
Loading /home/xyz/public_html/modules/CGExtensions/lib/class.cge_http.php = 8004 bytes for an approximate total of 2978444
Debug: (60.622005) - (usage: 9914808) - (peak: 9956744)
(mysqli): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action, ip_addr) VALUES (1408607867,'1','chris_admin',-1,'CGSmartImage','Connection to DeviceAtlas failed','87.242.141.78')
Error (2006): MySQL server has gone away
Again I have the site fully working, but am not certain (again) what will happen overnight. I suspect what I am finding here is just a symptom rather than a root cause.
Site Info:
----------------------------------------------
Cms Version: 1.11.11
Installed Modules:
CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
CGExtensions: 1.41.2
ModuleManager: 1.5.8
News: 2.14.4
CGSimpleSmarty: 1.7.4
CGGoogleMaps: 2.4.7
CGSmartImage: 1.16.2
FormBuilder: 0.7.3
Gallery: 2.0.1
SiteMapMadeSimple: 1.2.8
CustomGS: 2.1
ECB: 1.6
GBFilePicker: 1.3.3
ListIt2: 1.4.1
CGFeedMaker: 1.0.20
TemplateExternalizer: 2.1.3
ListIt2XDefs: 1.2
ListIt2Widgets: 1.4.1
JQueryTools: 1.2.6
CMSPrinting: 1.0.5
MicroTiny: 1.2.7
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.4.31
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 120
output_buffering: 1
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.68
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
Server Time Diff: No filesystem time difference found
----------------------------------------------
Re: Html blob 'global_content_block_x' does not exist
Mine came back. I thought removing the open graph would work, but Facebook is till hitting the site and all the GCB are missing.
WTF! I will ask the customer if she wants to pay for php developer to fix this or I will need to move all the GCBs to the template(s)
WTF! I will ask the customer if she wants to pay for php developer to fix this or I will need to move all the GCBs to the template(s)
Re: Html blob 'global_content_block_x' does not exist
@Carasmo
Try changing to GCB calls to:
{include file='globalcontent:your_name'} instead of {global_content name='your_name'}
I am curious what happens.
Try changing to GCB calls to:
{include file='globalcontent:your_name'} instead of {global_content name='your_name'}
I am curious what happens.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Html blob 'global_content_block_x' does not exist
Anyone figured this out? One of my sites I have to clear cache 2 times a day.
@Rolf what will this do? There's many, many areas to change this and it's very time consuming.
Thanks!
@Rolf what will this do? There's many, many areas to change this and it's very time consuming.
Code: Select all
{include file='globalcontent:your_name'}
Re: Html blob 'global_content_block_x' does not exist
@carasmo
in CGSmartImage, set 'Enable Responsive Images:' to No.
See Calguys explanation here: http://forum.cmsmadesimple.org/viewtopi ... 54#p315254
in CGSmartImage, set 'Enable Responsive Images:' to No.
See Calguys explanation here: http://forum.cmsmadesimple.org/viewtopi ... 54#p315254
Re: Html blob 'global_content_block_x' does not exist
THANK YOU BIG TIME.