Jump to content

http 500 on user registration


Recommended Posts

Hi,

I have problems with my site, whenever you want to register to it, you can enter your email adres and then you will be presented with the form to enter all your necessary details. After that

It will go to url:

http://www.goedhuysverf.nl/authentication.php?back=order.php?step=1

And that page gives me a HTTP 500 error, does this has to do with permissions?
I have checked the error_log on the server but i cannot find anything about this reference.
The user will be created however in the backend. But it does not send an email.

edit: I have just seen that when i try to use the contact form i also get an HTTP 500 error, they may be related due to the fact it is going to send an email to a user at that point?

Link to comment
Share on other sites

All needed chmodding is applied, per instructions on the wiki page.

Unfortunately I do not have access to the logfiles of the server, it might be that htaccess is causing this.

The contents of the htaccess file is:

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

this is the default .htaccess by Prestashop. The pb doesn't lie here, please write a php file,give it any name , put the line:

<?php
phpinfo();

?>

this will render a webpage with all the modules of the php engine configuration. Make sure it is php verison 5; But in your case I doubt it is the case. Did you notice any warning in the install?

May I suggest you back up you Database and product and template and make a reinstall ?

I just created an acount at your website, after submit, I see a totally blank page.

Link to comment
Share on other sites

Beware when you upload you must check if its in binary mode or not. You have 2 mode binary or ASCII. I think it's binary mode.
At this time not sure it's your host. If you still have problem you'd better contact you hoster. Time to check your host after sale service :)

Link to comment
Share on other sites

Just some hosting company in the netherlands (the tax paradise according to barack), good speeds etc. We are probably going to move to another hosting provider. But nothing in the US it is just too slow for us europeans.

Link to comment
Share on other sites

I have some new revelations :P

A while ago i changed from a subfolder to the root of the domain. Now i find strange errors in the error_log: (gbeheer is my admin folder)

[Thu May 07 22:06:40 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/js, referer: http://www.goedhuysverf.nl/gbeheer/
[Thu May 07 22:06:45 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/modules, referer: http://www.goedhuysverf.nl/gbeheer/
[Thu May 07 22:06:45 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/modules, referer: http://www.goedhuysverf.nl/gbeheer/
[Thu May 07 22:06:45 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/modules, referer: http://www.goedhuysverf.nl/gbeheer/
[Thu May 07 22:06:45 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/modules, referer: http://www.goedhuysverf.nl/gbeheer/
[Thu May 07 22:07:17 2009] [error] [client 84.105.56.151] File does not exist: /home/goedhuysverf.nl/www/gbeheer/js, referer: http://www.goedhuysverf.nl/gbeheer/index.php



It looks like it tries to access folders that should be in / instead of /gbeheer/

Also i get http errors 500 when i try to sign myself up to the newsletter, and the contact-form.php doesnt send emails, and breaks halfway through the process. Could it have something to do with the mailscript somewhere, in combination with moving from a subfolder to the root of the domain?

Link to comment
Share on other sites

i think sure,anyway it's not a good idea to move an install.
you can install prestashop in a subfolder and point the TLD to the subfolder making it look like you didn't installed in the subfolder.

I think the better way is to reinstall the prestashop (it 's pretty quick) and reupload your database of product (including images) well you know all this stuff.

Link to comment
Share on other sites

did you backup your database before moving,
you can´t simply move your shop arround there is a wiki for that what you did
but i can´t find it right now, there need to be a few certain steps done
your shop is screwed now, because the cookies and internal links which are created through the install prozess are wrong now.

if you have a backup the easiest thing would be now to install the shop new in the root.
sd

Link to comment
Share on other sites

So a fresh install to a new database? and what about all the products and images etc in the old database? Can you export these from the old database and import them back into a freshly installed database without issues?

Or should I install from new files to an existing database?

Link to comment
Share on other sites

hi,
thats what the database backup is for, to move your database in a new presta installation,
but i never did it so far, so i can give you any advice on that, check out the wiki

in backend - tools - import
there you do it
sd

Link to comment
Share on other sites

Didn't work i did some spitting and i think i have found the thing that is giving me headaches:

it is located in tools/swift/Swift/ClassLoader.php

And it is including the other files needed to email people. This is trying to includie files that don't exist. in that specific location according to my php error log

<?php

/**
* Swift Mailer Class Loader for includes
* Please read the LICENSE file
* @author Chris Corbyn 
* @package Swift
* @license GNU Lesser General Public License
*/

if (!defined("SWIFT_ABS_PATH")) define("SWIFT_ABS_PATH", dirname(__FILE__) . "/..");

/**
* Locates and includes class files
* @package Swift
* @author Chris Corbyn 
*/
class Swift_ClassLoader
{
 /**
  * A list of files already located
  * @var array
  */
 protected static $located = array();

 /**
  * Load a new class into memory
  * @param string The name of the class, case SenSItivE
  */
 public static function load($name)
 {
   if (in_array($name, self::$located) || class_exists($name, false) || interface_exists($name, false))
     return;


   require_once SWIFT_ABS_PATH . "/" . str_replace("_", "/", $name) . ".php";
   self::$located[] = $name;
 }
}



Errorlog on test machine:

[11-May-2009 22:19:58] PHP Warning:  require_once(D:\werk\wamp\www\webshop11\tools\swift\Swift/../Swift/Plugin/Decorator/Replacements.php) [function.require-once]: failed to open stream: No such file or directory in D:\werk\wamp\www\webshop11\tools\swift\Swift\ClassLoader.php on line 35

[11-May-2009 22:19:58] PHP Fatal error:  require_once() [function.require]: Failed opening required 'D:\werk\wamp\www\webshop11\tools\swift\Swift/../Swift/Plugin/Decorator/Replacements.php' (include_path='.;C:\php5\pear') in D:\werk\wamp\www\webshop11\tools\swift\Swift\ClassLoader.php on line 35



I have been trying to get the path right so that the script finds the files necessary. But no success as of yet.. anyone can help?

Link to comment
Share on other sites

  • 2 months later...

Just make sure if you use FileZilla or something that every file is actually uploaded to your host. I had a few files which were 0kb because of the FTP program I used. Once you really have all the files it works like a charm.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...