[Solved] Timeout problem when EVAL a module call

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
croontje
Forum Members
Forum Members
Posts: 63
Joined: Mon Sep 17, 2007 8:49 am

[Solved] Timeout problem when EVAL a module call

Post by croontje »

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:
Gateway Time-out
The gateway did not receive a timely response from the upstream server or application.
What did I try?
  • 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
So I can conclude the problem is NOT in the News module, not in my news template, not in the module call or eval, not in the Picasabrowser template.
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:
[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
Now the question :) 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

----------------------------------------------
Last edited by croontje on Sun Sep 09, 2012 11:52 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Timeout problem when EVAL a module call

Post by Dr.CSS »

Could be 2 things...

1) the module is old enough that it doesn't work in the latest version of CMSMS...
Last Release Date: 2010-11-09 (22 months ago)

2) picasa is not giving you the data fast enough...
croontje
Forum Members
Forum Members
Posts: 63
Joined: Mon Sep 17, 2007 8:49 am

Re: Timeout problem when EVAL a module call

Post by croontje »

Both option could be possible but the module works perfectly when called normally. The error only occurs when called in a news article and evalled... That's the strange thing
croontje
Forum Members
Forum Members
Posts: 63
Joined: Mon Sep 17, 2007 8:49 am

Re: Timeout problem when EVAL a module call

Post by croontje »

Fixed:

I used {cms_module module="PicasaBrowser"} instead of {PicasaBrowser} and now it works :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Timeout problem when EVAL a module call

Post by Dr.CSS »

croontje
Forum Members
Forum Members
Posts: 63
Joined: Mon Sep 17, 2007 8:49 am

Re: Timeout problem when EVAL a module call

Post by croontje »

I'm aware of that
Post Reply

Return to “Modules/Add-Ons”