BuddahBoy Posted July 8, 2008 Posted July 8, 2008 Greetings - all of a sudden getting the following error when accessing a product in admin then clicking on "preview" whether or not the item is changed in any manner - would some kind soul give me an idea what is causing this and how to correct it please? This site has been working for about 2 years, have not installed anything or made any changes lately. Thank you very much - error message: Fatal error: Call to a member function set_file() on a non-object in /home/*****/public_html/admin/includes/classes/upload.php on line 31 Lines 30 - 41 of the mentioned file [upload.php]: 30 31 $this_var->set_file($file); 32 33 $this_var->set_destination($destination); 34 35 $this_var->set_permissions($permissions); 36 37 $this_var->set_extensions($extensions); 38 39 40 41 $this_var->set_output_messages('direct'); Thank you for any assistance, greatly appreciated.
lindsayanng Posted July 8, 2008 Posted July 8, 2008 i believe that means that your host upgraded to php5 mysql5.. thats USUALLY the issue when things get screwy without making any changes. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
BuddahBoy Posted July 8, 2008 Author Posted July 8, 2008 Thanks Lindsay - that is actually the case, the server has been upgraded - oddly enough another site that I have on the same server is fine. What is the solution to this then? Thanks again
lindsayanng Posted July 8, 2008 Posted July 8, 2008 i'm not entirely sure what the solution is, but i CAN tell you that a LOT have had the same issue and fixed it, so there is one out there. go to google.com and in the search type site:www.oscommerce.com/forums MYSQL5 upgrade A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
satish Posted July 8, 2008 Posted July 8, 2008 $this_var->set_file($file); This means $this_var which should have been an object is considered by code as not an object. This generally happens when Session variables that were previously considered as globals are no more considered as globals with registered globals set to off. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.