Ubercart Warnings , using wampserver ..Warning: Creating default object from empty value in uc_s
Posted by artist_nz on November 21, 2012 at 11:22am
Ok before i begin i just want to say that i am very new/complete novice to php and wampserver
I have installed drupal 7 and ubercart to my Hosting provider and it seems to run fine with the hosting provider.
However i want to install to my home computer so that i can make changes etc without interfering with the master copy on the hosting service.
I have installed wampserver and created same directory and permissions as my provider, i zipped the database and imported it to wampserver. with the same database name and permissions.
Ok the drupal runs fine the ubercart works ok until you go to checkout and the following warnings appear.
Warning: Creating default object from empty value in uc_shipping_zones_get() (line 60 of C:\wamp\www\drupal\sites\all\modules\uc_global_quote\uc_shipping_zones\uc_shipping_zones.module).
Warning: Creating default object from empty value in uc_shipping_zones_get() (line 70 of C:\wamp\www\drupal\sites\all\modules\uc_global_quote\uc_shipping_zones\uc_shipping_zones.module).
i have also tried installing drupal 7 and ubercart from scratch on my wampserver but it still gets the same warnings.
i cant find any explanation for this and why doesn't it have this problem at the checkout on my web site at my hosting provider? any help greatly appreciated.
Comments
Not to answer your question, but:
When you want to work on a dev copy of a site in private, it's usually best if your dev environment resembles your live environment as far as possible.
Rather than set up WAMP, why not create a subdomain for your test site, and install a second copy of your site there. You can use a different sites subdirectory so that your live and test sites are from different databases. You can use apache's password protection to stop web spiders from crawling your development site.
At least that's what I do. Much easier. If you want to persevere with WAMP, hopefully someone who knows about that will be along to help you with it - it's not my area.
James Oakley … my Drupal sites
OakHosting.NET | Oakleys.org.uk | Mandelbrot Explorer | Mary Oakley's Books
thanks for the suggestion
thanks for the suggestion, and sounds like a good way to develop the site. I got my problem with wampserver sorted it was the version of php5, i ended up downloading another copy of wampserver with a different version of php and it seems to have fixed the problem i was having