Jump to content

Undefined method Shop::initialize()


Recommended Posts

Hi everyone, this is my first post, I am having problems with my shop, all of a sudden my site just went down, I turned on the error debug and it says:

 

Fatal error: Call to undefined method Shop::initialize() in /home/legin/permanentoffert.com/config/config.inc.php on line 90

 

I read in other posts that might be solved deleting the class_index.php file but I did that, my site went back to life and after a few minutes again went down, I really need to fix this....

 

I have the Prestashop 1.5.4.1, the site is: www.permanentoffert.com

 

Please people I really need your help, thank you very much!!!!

 

P.S.: The image attached is from my FTP client, it shows how many time just rename the class_index.php file

post-393638-0-21712200-1369186117_thumb.jpg

Link to comment
Share on other sites

You can try delete two folders and replace them. Delete both the classes directory and controllers directory. Replace them from a copy of PS 1.5.4.1.

 

There have been many reports of older files not being replaced in auto upgrades. This will work or not ... but it won't hurt to try. :mellow:

Link to comment
Share on other sites

Ok, I did that, deleted the class_index.php file, everything came up to life again, went to BO and click the modules tab, after that tryed to see my FO and the same error appeared again

Link to comment
Share on other sites

Let see if we can get any info from the /config/defines.inc.php file, and change the following line:

 

/* Debug only */

define('_PS_MODE_DEV_', true);

 

You will need to keep deleting class_index.php to get this thing to fire long enough to hopefully get more information from the error event.

Link to comment
Share on other sites

no, nothing, I prepared my shop locally, then I migrated to my server everything went ok, all of a sudden when I was trying to load some images for my products the site went down. I also deactivated some modules like advertising module, then I move the supliers modules and the manufacture modules to the other column, that's all!

Link to comment
Share on other sites

This could be so many things I could ask you questions all day. For example have you ever had a completed shop on this server before? Many of the problems could be related to permissions or environment. You could create a new directory and do a fresh install of just the default Prestashop and see how that runs on your server ...

Link to comment
Share on other sites

This is my first shop on this server, but I have a couple of site on this server too running joomla and Wordpress... I'll do a fresh install si how it runs... I'll let you know how it goes ok? thanx very much!

  • Like 1
Link to comment
Share on other sites

Hi Bill, since yesterday I tryed to install a fresh store but something wrong is happening, as you see in the image attached the installation progress is not appearing... what can I do??? this is too wired, I never had this kind of issue...

post-393638-0-25243200-1369317280_thumb.png

Edited by legin (see edit history)
Link to comment
Share on other sites

legin, you sound like you have experience installing applications. You mentioned you have installed joomla and Wordpress on this server. So if you are sure your database and permissions have been set as per the Prestashop install

http://doc.prestasho...Getting+Started

 

It may be time to contact your host. Let them know of this problem. Let them know you are setting file permissions but they don't seem to work. It may be that their file settings are overriding yours. I'm not saying that this is happening. But if you are sure you have set up everything correctly then asking your host to take a look is a good next step.

Link to comment
Share on other sites

Ok Bill, thanx for everything, I'll contact DreamHost support and let's see what they say... In the mean while, I downloaded again prestashop 1.5.4.1 and I am transfering the files entirely, in case that the first time didn't transfer everything, I erase the database, and created a new one... So I let you now how it goes...

 

P.S.: I read a toturial to migrate PS from local to remote, I saw 2 methods, 1 doing a fresh installing then erasing everithing than the config file, and importing DB from local... the second one is just copy/paste everything and the editting the settings.inc.php file putting my server data, also editing the SQL file putting also server data.

What I will do is second one, as the first did not work, so you recomend that method??

 

THANX!

  • Like 1
Link to comment
Share on other sites

Yeah that's about it. Just remember that on Windows you usually don't need to worry about file permissions. This is because in most cases the software is installed by an administrator account. Files on Linux server systems require that the permissions outlined must be set, regardless of the install method.

 

Sounds like you have everything covered. I'm sure we'll hear good news from you soon. :)

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...