Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Hosts


parma

Recommended Posts

Posted

Hey,

I've recently changed hosts from Bluehost.com to UKFast.net. I thought the transfer would be as simple enough, moving the mysql database and also the content of the oscommerce site. However, hasnt really worked out that well.

 

The previous host was using Cpanel and the new host is on Plesk, I understand you cant have a php.ini on plesk but I dont know if this is why the site wouldnt function properly. I have had the host also update PHP & Mysql to match the version my previous host was using.

 

Basically I can see the index page however, when I click on any of the categories due to my rewrite for the seo urls it forwards directly to the index page again. If I disable the rewrite then it would just go to a 404 error page.

 

Another problem is on the admin panel, not all of the headings show, instead for a few of them I get TABLE_HEADING_CATEGORIES_PRODUCTS, TABLE_HEADING_STATUS ETC. However, the categories all look fine. The thing is I can only see the main heading settings when I click on the left categories, I cant drill down nor can I change any settings.

 

I havent seen any specific error messages apart from the error log from the domain. Which says the following;

 

[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/customers.php?page=1&cID=2689
[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include(includes/languages/english/) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/stats_products_viewed.php?selected_box=reports
[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/stats_products_viewed.php?selected_box=reports

 

The error log above is for the Admin side of things.

 

and below is the errors for the catalog side.

[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: config_values in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 30, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html

 

I was just wondering if anyone else has experienced this, or if I have missed anything out?

 

 

Thanks

 

p4rma

Posted

A php.ini file can be used with Pleask. It might be that you are on a Windows server. If that is the case, you should ask to be moved to a Linux server. If your new host doesn't offer that, you should look for another host. For your problems, be sure you have changed the configure files to use the new hosts path.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

A php.ini file can be used with Pleask. It might be that you are on a Windows server. If that is the case, you should ask to be moved to a Linux server. If your new host doesn't offer that, you should look for another host. For your problems, be sure you have changed the configure files to use the new hosts path.

 

Thanks for the reply Jack_mcs, well I have plesk on a linux server. Regarding the paths I have double checked this and they seem correct, I even did a fresh install just to make sure the absolute paths were correct. :(

Posted

The errors for admin are saying the english directory can't be found. Is it there? The warnings for the shop side can be ignored.

 

Yeah I dont get it, the files are there. I mean I get half of the english values for some of the heading but not all of them, the files seem to be fine. Thought maybe they were corrupt.

Posted

Hey,

I've recently changed hosts from Bluehost.com to UKFast.net. I thought the transfer would be as simple enough, moving the mysql database and also the content of the oscommerce site. However, hasnt really worked out that well.

 

The previous host was using Cpanel and the new host is on Plesk, I understand you cant have a php.ini on plesk but I dont know if this is why the site wouldnt function properly. I have had the host also update PHP & Mysql to match the version my previous host was using.

 

Basically I can see the index page however, when I click on any of the categories due to my rewrite for the seo urls it forwards directly to the index page again. If I disable the rewrite then it would just go to a 404 error page.

 

Another problem is on the admin panel, not all of the headings show, instead for a few of them I get TABLE_HEADING_CATEGORIES_PRODUCTS, TABLE_HEADING_STATUS ETC. However, the categories all look fine. The thing is I can only see the main heading settings when I click on the left categories, I cant drill down nor can I change any settings.

 

I havent seen any specific error messages apart from the error log from the domain. Which says the following;

 

[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/customers.php?page=1&cID=2689
[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include(includes/languages/english/) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/stats_products_viewed.php?selected_box=reports
[Tue Dec 08 17:35:28 2009] [error] [client 87.194.49.148] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.gloveclub.co.uk/admin/stats_products_viewed.php?selected_box=reports

 

The error log above is for the Admin side of things.

 

and below is the errors for the catalog side.

[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: config_values in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 30, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html

 

I was just wondering if anyone else has experienced this, or if I have missed anything out?

 

 

Thanks

 

p4rma

 

You are using a version pre RC2a and register_long_arrays is off in php.ini.

 

open the .htaccess file in the root of your shop and add ..

 

php_value register_long_arrays 1

Posted

You are using a version pre RC2a and register_long_arrays is off in php.ini.

 

open the .htaccess file in the root of your shop and add ..

 

php_value register_long_arrays 1

 

Thank you!!!!! Looks like it is working!

 

The products all work now, admin is fine! Thing is I cant add any products to the cart nor can I log in for some reason.

Posted

Also when im on the admin screen if I try to go to any options I get this error:

 

[Tue Dec 08 21:04:07 2009] [error] [client 87.194.49.148] access to /var/www/vhosts/gloveclub.co.uk/httpdocs/admin/categories.php failed, reason: SSL connection required
[Tue Dec 08 21:06:41 2009] [warn] RSA server certificate CommonName (CN) `www.gloveclub.co.uk' does NOT match server name!?

 

Thing is the certificate I have seems to be valid.

Posted

Thank you!!!!! Looks like it is working!

 

The products all work now, admin is fine! Thing is I cant add any products to the cart nor can I log in for some reason.

 

 

Hey looks like everything is working, just had to change a couple of settings. Thanks again for all your help!!

  • 5 months later...
Posted

Hey,

I've recently changed hosts from Bluehost.com to UKFast.net. I thought the transfer would be as simple enough, moving the mysql database and also the content of the oscommerce site. However, hasnt really worked out that well.

 

and below is the errors for the catalog side.

[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: config_values in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 30, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Undefined variable: page_prefix in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 158, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html
[Tue Dec 08 17:40:40 2009] [error] [client 87.194.49.148] PHP Notice:  Use of undefined constant file - assumed 'file' in /var/www/vhosts/gloveclub.co.uk/httpdocs/imagemagic.php on line 395, referer: http://www.gloveclub.co.uk/dust-sheets-c-53.html

 

I was just wondering if anyone else has experienced this, or if I have missed anything out?

 

 

Thanks

 

p4rma

 

I'm trying to update my code to work on a php5/mysql5 server, and am getting the same errors. I tried adding "php_value register_long_arrays 1" to the .htaccess file, but no joy. Any other suggestions?

  • 2 weeks later...
Posted

I'm trying to update my code to work on a php5/mysql5 server, and am getting the same errors. I tried adding "php_value register_long_arrays 1" to the .htaccess file, but no joy. Any other suggestions?

 

Just a heads up for future searchers - I fixed this: http://www.oscommerce.com/forums/topic/359570-moving-a-22ms2-to-mysql5php5register-globals-off/page__p__1512717__fromsearch__1entry1512717

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...