Click to See Complete Forum and Search --> : Problem in shifting php cart to other domain


windshadow0047
September 25th, 2008, 11:01 PM
HI

I am new to PHP and I got a freelance project on PHP. My client has two domain in a single server. My work is to copy the shopping cart from existing site and intigrate it on the new site. Both the site are in same server but diffrent domain and working on PHP ver 5

My problem is when I am shifting the entire cart php application to new site, it is showing below error message where as same files are running perfecting in my local system as well as the site from where I took all the cart page.

Error

Fatal error: Cannot use object of type cMySQL as array in /nfs/c01/h05/mnt/11913/domains/colormagnets.net/html/cart/classes/class.cart.php on line 255

Please help out. I am really in problem... please.....

mmetzger
September 26th, 2008, 07:39 AM
Sounds like either a permissions or a configuration issue. I'd check to make sure the file copies have the same permissions (or at least permissions for all web server(s)) to access them. Beyond that, check the config on the 2nd host to verify MySQL access is enabled.

ariell
October 2nd, 2008, 06:30 PM
It might be a permission problem, too. First of all, it's a FATAL error on line n. - Could u provide some code??