Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-12-15 14:14:42

jimheil
New Member
Registered: 2016-12-15
Posts: 4

Extensions tab giving me a Gateway Timeout

I recently moved my Textpattern website. I haven’t used my site in a long time. When I went to see if everything worked on the new site, the Extensions tabs gave me this error:
Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.

Siteground support suggested this:
I have tried finding the reason the error, but I am afraid I was unable to. Usually this error appears when the script takes too much time to finish its execution and indeed your CPU usage in your cPanel has spiked a little bit. For a new account, those values are not so good:

I would advise disabling plugins one-by one, but since you can’t access the page, you might research the option to disable all of them at once via database. Once disabled, start enabling them until the issue reappear. Then you will know which plugin is causing all the troubles.

I am not sure that this advice is correct. Any Suggestions?

Offline

#2 2016-12-15 14:47:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: Extensions tab giving me a Gateway Timeout

It’s sage advice. You can still access the plugins panel and disable them all (or at least all the ones with admin-side components that appear on the Extensions menu) via the multi-edit tool, because plugins do not run on that panel.

Just visit example.org/textpattern?event=plugin to begin.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2016-12-15 14:54:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: Extensions tab giving me a Gateway Timeout

jimheil, hi and welcome to txp

Could you send us your diagnostics? Is this an old install? Which txp version do you have?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2016-12-16 01:37:43

jimheil
New Member
Registered: 2016-12-15
Posts: 4

Re: Extensions tab giving me a Gateway Timeout

Yiannis,

Does this information help? Thanks for your help!

Some Textpattern files have been modified: 
/home/********/public_html/rosewaterfoundation.org/textpattern/index.php ?

Diagnostic infoTextpattern version: 4.5.5 (r5575)
Last Update: 2015-02-20 04:09:24/2015-02-21 06:49:26
Document root: /home/********/public_html/rosewaterfoundation.org
$path_to_site: /home/********/public_html/rosewaterfoundation.org
Textpattern path: /home/********/public_html/rosewaterfoundation.org/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/********/public_html/rosewaterfoundation.org/textpattern/tmp
Site URL: rosewaterfoundation.org
PHP version: 5.6.29
GD Image Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: CST6CDT
Server Local Time: 2016-12-15 19:30:59
DST enabled?: 0
Automatically adjust DST setting?: 1
Time Zone: America/Edmonton (-25200)
MySQL: 5.6.28-76.1-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.12.18-clouder0
Active plugins: zem_contact_lang-4.0.3.6, rss_thumbpop-0.7m, zem_contact_reborn-4.0.3.20, jcb_columnize-0.5, rss_googlemap_stats-0.2, zem_article_image-0.1, hak_article_image-0.6.3, rvm_privileged-0.4, jnm_audio-0.3, msv_links-0.2, adi_link-0.3, hcg_templates-0.3, dds_admin_style-0.1, fh-article-image-selector-0.3m, wow_gallery-0.6, adi_notes-1.0.2, smd_tabber-0.11, ign_password_protect-0.5b9, hak_tinymce-1.0.2, wow_gallery_lib-0.6, msd_piwik_dashboard-0.2, smd_admin_themes-0.26
Admin-side theme: remora 4.5.5

Pre-flight check: 
------------------------
textpattern_update_available: 4.6.2
Some Textpattern files have been modified: 
	/home/********/public_html/rosewaterfoundation.org/textpattern/index.php
------------------------

.htaccess file contents: 
------------------------

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing|spaumbot) [OR]
RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing)
RewriteRule ^([^/]*)/$ /main.php?p=$1 [L]

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

------------------------

Offline

#5 2016-12-16 05:09:08

jimheil
New Member
Registered: 2016-12-15
Posts: 4

Re: Extensions tab giving me a Gateway Timeout

colak wrote #303273:

jimheil, hi and welcome to txp

Could you send us your diagnostics? Is this an old install? Which txp version do you have?

Yiannis,

Does this information help? Thanks for your help!

textpattern_update_available: 4.6.2 ?

Some Textpattern files have been modified: 
/home/********/public_html/rosewaterfoundation.org/textpattern/index.php ?

Diagnostic infoTextpattern version: 4.5.5 (r5575)
Last Update: 2015-02-20 04:09:24/2015-02-21 06:49:26
Document root: /home/********/public_html/rosewaterfoundation.org
$path_to_site: /home/********/public_html/rosewaterfoundation.org
Textpattern path: /home/********/public_html/rosewaterfoundation.org/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/********/public_html/rosewaterfoundation.org/textpattern/tmp
Site URL: rosewaterfoundation.org
PHP version: 5.6.29
GD Image Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: CST6CDT
Server Local Time: 2016-12-15 19:30:59
DST enabled?: 0
Automatically adjust DST setting?: 1
Time Zone: America/Edmonton (-25200)
MySQL: 5.6.28-76.1-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 3.12.18-clouder0
Active plugins: zem_contact_lang-4.0.3.6, rss_thumbpop-0.7m, zem_contact_reborn-4.0.3.20, jcb_columnize-0.5, rss_googlemap_stats-0.2, zem_article_image-0.1, hak_article_image-0.6.3, rvm_privileged-0.4, jnm_audio-0.3, msv_links-0.2, adi_link-0.3, hcg_templates-0.3, dds_admin_style-0.1, fh-article-image-selector-0.3m, wow_gallery-0.6, adi_notes-1.0.2, smd_tabber-0.11, ign_password_protect-0.5b9, hak_tinymce-1.0.2, wow_gallery_lib-0.6, msd_piwik_dashboard-0.2, smd_admin_themes-0.26
Admin-side theme: remora 4.5.5

Pre-flight check: 
————————————
textpattern_update_available: 4.6.2
Some Textpattern files have been modified: /home/********/public_html/rosewaterfoundation.org/textpattern/index.php
————————————

.htaccess file contents: 
————————————

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing|spaumbot) [OR]
RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing)
RewriteRule ^([^/]*)/$ /main.php?p=$1 [L]

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

SVG
AddType image/svg+xml svg svgz
AddEncoding gzip svgz

Offline

#6 2016-12-16 16:03:54

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Extensions tab giving me a Gateway Timeout

The following code isn’t part in the Textpattern .htaccess file:

RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing|spaumbot) [OR]
RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing)
RewriteRule ^([^/]*)/$ /main.php?p=$1 [L]

Textpattern has no main.php file.

And in the other part of the .htaccess file, I think there should be new lines for each RewriteCond and RewriteRule.

Offline

#7 2016-12-17 05:52:53

jimheil
New Member
Registered: 2016-12-15
Posts: 4

Re: Extensions tab giving me a Gateway Timeout

GugUser wrote #303287:

The following code isn’t part in the Textpattern .htaccess file:

RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing|spaumbot) [OR]...

Textpattern has no main.php file.

And in the other part of the .htaccess file, I think there should be new lines for each RewriteCond and RewriteRule.

Should I remove the lines and file from my installation?

Offline

#8 2016-12-17 08:22:15

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,079
Website

Re: Extensions tab giving me a Gateway Timeout

jimheil wrote #303289:

Should I remove the lines and file from my installation?

If you didn’t put that file on the server, or add those lines to the .htaccess yourself, it would probably better (safe) to remove both.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#9 2016-12-17 08:34:09

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Extensions tab giving me a Gateway Timeout

Your index.php has also been modified as per diagnostics, not sure if this is relevant to your install but its not usual so that may be something to check on.

Offline

Board footer

Powered by FluxBB