Jump to content

Created subdomain and copied all files but see empty page.


Recommended Posts

Hello,

 

Have you configure the new database ?

 

If yes :

 

 

Go to your admin (on subdomain shop), Go to Preferences -> SEO & URL

 

change the root folder and save

 

The htaccess will be modify automatically

 

if it doesnt work, you can go to config/define.inc.php  and change

 

define('_PS_MODE_DEV_', false);
 

by

 

define('_PS_MODE_DEV_', true);

 

go to the subdomain page and you will see the error
 

  • Like 1
Link to comment
Share on other sites

Hello,

 

Have you configure the new database ?

 

If yes :

 

 

Go to your admin (on subdomain shop), Go to Preferences -> SEO & URL

 

change the root folder and save

 

The htaccess will be modify automatically

 

if it doesnt work, you can go to config/define.inc.php  and change

 

define('_PS_MODE_DEV_', false);

 

by

 

define('_PS_MODE_DEV_', true);

 

go to the subdomain page and you will see the error

 

Hi, thanks for helping.

Below is the error message,

 

Warning: require_once(/public_html/NewTemplate/classes/PrestaShopAutoload.php) [function.require-once]: failed to open stream: No such file or directory in /public_html/NewTemplate/config/autoload.php on line 29

 

Fatal error: require_once() [function.require]: Failed opening required '/public_html/NewTemplate/classes/PrestaShopAutoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/NewTemplate/config/autoload.php on line 29

 

And the line 29 code is require_once(_PS_CLASS_DIR_.'PrestaShopAutoload.php');.

 

Please help me on this.

Link to comment
Share on other sites

please go to your ftp connection

open directory: NewTemplate/classes/

does it contains PrestaShopAutoload.php file?

note, that prestashopautoload.php is not equal to PrestaShopAutoload.php (unix systems are case sensitive)

Hi vekia, thanks for your reply.

Currently I'm using v1.4.4.1, I downloaded the version and can't find prestashopautoload.php and PrestaShopAutoload.php.

My main site is working perfectly but not the test site with the exactly same files.

 

Please help.

Link to comment
Share on other sites

Well 1.4 didn't have that, no idea why your config loads it, it should be

 

require_once(dirname(__FILE__).'/autoload.php');

Hi Nemo1.

Can you please share with me in which file I can look for the line of code that you mentioned?

I'll try to change it to your suggestion.

Thanks.

Link to comment
Share on other sites

Well 1.4 didn't have that, no idea why your config loads it, it should be

 

require_once(dirname(__FILE__).'/autoload.php');

Hi Nemo1.

I'm trying to setup the test site with test db.

There are two databases, which is IRDATA and PRESTASHOP.

I can see that IRDATA is set at config/settings.inc.php, define('_DB_NAME_', 'IRdata');.

 

Please share with me in which file I should update the site to point to PRESTASHOP test database?

Thanks.

Link to comment
Share on other sites

THat is the file where database connection details are setup, settings.in.php. As for the other it was config.inc.php

When doing backup for the database table, I received the below error.

I tried to set  post_max_size to 900m, but still received the error message.

Please help

 

I had set the

[Ajax / Server Error for action backupDb] textStatus: "error "

errorThrown:"Request Entity Too Large " jqXHR: " Request Entity Too Large

The requested resource

/autoupgrade/ajax-upgradetab.php

does not allow request data with GET requests, or the amount of data

provided in the request exceeds the capacity limit.

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