[Solved] Timeout problem when EVAL a module call
Posted: Thu Sep 06, 2012 7:05 am
Used modules and PHP version below
I upgraded yesterday from CMSMS 1.10.3 to 1.11.1. Everything went fine but 1 problem remained.
I have a News article that calls a module: {PicasaBrowser user="bergstijgerskempen" album="DeMixx"}
In the news template I use: {eval var=$entry->content} to display the content.
When I publish that news article en reload the homepage, the page just times out with following message:
It has something to do with the PicasaBrowser module itself. The module works perfectly when displayed on a page without the eval.
The only error I get in my apache error log is:
Is there anyone that has any idea on how to solve this mystery? Because without CMSMS logs or apache logs I'm stuck 
I'll try to figure out the cause when digging through the Picasabrowser code but maybe someone has a great idea
----------------------------------------------
Cms Version: 1.11.1
Installed Modules:
CMSMailer: 5.2.1
FileManager: 1.4.0
MenuManager: 1.8.3
ModuleManager: 1.5.5
News: 2.12.8
Printing: 1.1.2
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.30
CGCalendar: 1.8.3
Captcha: 0.4.5
FormBuilder: 0.7.3
FrontEndUsers: 1.18.1
TreeManager: 0.6.0
Forum: 0.9.4
PicasaBrowser: 2.0.3
SelfRegistration: 1.6.16
CGFeedMaker: 1.0.16
CMSPrinting: 1.0.3
MicroTiny: 1.2.3
Config Information:
php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 20000000
url_rewriting: none
page_extension:
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.2.17-pl0-gentoo
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 64M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.62
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
----------------------------------------------
I upgraded yesterday from CMSMS 1.10.3 to 1.11.1. Everything went fine but 1 problem remained.
I have a News article that calls a module: {PicasaBrowser user="bergstijgerskempen" album="DeMixx"}
In the news template I use: {eval var=$entry->content} to display the content.
When I publish that news article en reload the homepage, the page just times out with following message:
What did I try?Gateway Time-out
The gateway did not receive a timely response from the upstream server or application.
- At first I thought it was a problem with eval, but when I replace the module call with {get_template_vars} the page gets displayed with the template vars.
- I replaced the Module with another one (CGCalendar) and that works too
- I changed the PicasaBrowser templates to display "TEST" but the page still gives me a time out
It has something to do with the PicasaBrowser module itself. The module works perfectly when displayed on a page without the eval.
The only error I get in my apache error log is:
Now the question[Thu Sep 06 08:42:06 2012] [warn] [client 84.194.182.78] Timeout waiting for output from CGI script /spinternet.be/users/bergstijgerskempen/php-cgi/php5.cgi
[Thu Sep 06 08:42:06 2012] [error] [client 84.194.182.78] Script timed out before returning headers: php5.cgi


I'll try to figure out the cause when digging through the Picasabrowser code but maybe someone has a great idea

----------------------------------------------
Cms Version: 1.11.1
Installed Modules:
CMSMailer: 5.2.1
FileManager: 1.4.0
MenuManager: 1.8.3
ModuleManager: 1.5.5
News: 2.12.8
Printing: 1.1.2
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.30
CGCalendar: 1.8.3
Captcha: 0.4.5
FormBuilder: 0.7.3
FrontEndUsers: 1.18.1
TreeManager: 0.6.0
Forum: 0.9.4
PicasaBrowser: 2.0.3
SelfRegistration: 1.6.16
CGFeedMaker: 1.0.16
CMSPrinting: 1.0.3
MicroTiny: 1.2.3
Config Information:
php_memory_limit:
process_whole_template:
output_compression: false
max_upload_size: 20000000
url_rewriting: none
page_extension:
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.2.17-pl0-gentoo
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 64M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.62
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
----------------------------------------------