Jump to content

Fatal error after moving site from one host to another


jackryan

Recommended Posts

Hi.

 

I have a small issue with a site i hope someone can shed some light on for me.

 

I copied my site with Paypal shopping cart from hostA(old)  to hostB(new) with all files & folders in tact.

 

Site On HostB - Buyer enters the order page at http://www.camerabeanbags.com/order.php, and adds item to cart.

They are click checkout then enter their delivery address at http://www.camerabeanbags.com/checkout.php?action=address. (this step is before they are taken to Paypal)

As they hit next, they get 'Fatal error: Class 'PayPal_EncryptedButtons_Config' not found in /home/nelsonl/public_html/encode/basedir/EncryptedButtons.php on line 48'

Url for this page is http://www.camerabeanbags.com/confirm.php?action=confirm

 

Line 48 of EncryptedButtons.php reads

' $this->config = new PayPal_EncryptedButtons_Config;'

 

I do not understand why this problem occurred as all i did was to copy site from HostA to HostB and change the DNS over to HostB.

 

The main difference between the two hosts is that On HostA, the site folder is directly under public_html/. On HostB, it is an addon domain and falls under /home/nelsonl/public_html/

I notice on HostA, the confirm.php file reads ‘require_once("../encode/basedir/EncryptedButtons.php");’

 

I have modified on HostB confirm.php to read ‘require_once("/home/nelsonl/public_html/camerabeanbags.com/encode/basedir/EncryptedButtons.php");’

As well as ‘require_once("../home/nelsonl/public_html/camerabeanbags.com/encode/basedir/EncryptedButtons.php");’ But to no avail.

The encode folder was in the root directory. I’ve copied it into public_html/camerabeanbags.com/encode/ as well as public_html/encode/ with no success. (it made no difference where the encode folder is located)

 

It looks like a path issue with the files but iam not sure which file and how to correctly label the path location under php.

 

I hope it makes sense and would really appreciate your help on this.

 

Many thanks

 

Jack

 

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.