Jump to content

Trying to get property of non-object


Recommended Posts

I just realized something is wrong with my website from back office:

 

At least when I click on "1 Click Upgrade" "Seller Business Info" "Seller Types" "Seller payment info" 

 

I get server error, I check the logs and this is what I get:

 

[29-Sep-2013 12:01:40 Etc/GMT+3] PHP Notice: Trying to get property of non-object in "xxxxx"/classes/controller/FrontController.php on line 173 [29-Sep-2013 12:01:40 Etc/GMT+3] PHP Fatal error: Call to a member function isLogged() on a non-object in "xxxxx"/classes/controller/FrontController.php on line 351

 
xxxx are hidden!
 
I appreciate your help!!
Link to comment
Share on other sites

Hi there!

Prestashop version?

Server information

Server information: Linux #1 SMP Thu Mar 7 15:58:33 EST 2013 x86_64

Server software version: Apache

PHP version: 5.4.20

Memory limit: 130M

Max execution time: 30

Database information

MySQL version: 5.5.34-log

MySQL engine: InnoDB

Tables prefix: phi_

Store information

PrestaShop version: 1.5.4.1

Shop URL: http://nakhasah.com/

Current theme in use: default

Link to comment
Share on other sites

Thank you for telling me this!!!!

I did and tried "1 click upgrade" two weeks ago many times, but it always throws some exceptions at the middle of the download process I think! tried many times without any luck! 

Is there such a thing as a half upgrade?

 

How can I fix this? SHould I just replace the files? should that do?

 

 

Hussam

Link to comment
Share on other sites

Notice: Trying to get property of non-object in /home6/aljariya/public_html/souq/classes/controller/FrontController.php on line 173

Fatal error: Call to a member function isLogged() on a non-object in /home6/aljariya/public_html/souq/classes/controller/FrontController.php on line 351

Link to comment
Share on other sites

I think I got it...partially.

It seems the customer variable is not set for the current context. 

 

I was mistaken anyway, I was checking line 531! My bad.

 

I am kinda clueless at this point. It seems that $this->context->customer is a valid object at line  162, but not at line 173.

 

Can you try replacing the whole classes folder, as well as the controllers folder?

Link to comment
Share on other sites

  • 2 years later...
  • 7 months later...

I have the following error on my BO. My prestashop version is 1.6.1.5.

The error appeared today suddenly. Have not done any update on any module.

 

Notice on line 2146 in file /home/mesalman/public_html/classes/controller/AdminController.php

[8] Trying to get property of non-object

 

5 errors 

  1. Error found : StartTag: invalid element name in country_module_list.xml file.
  2. Error found : Premature end of data in tag GBP line 1 in country_module_list.xml file.
  3. Error found : Premature end of data in tag price line 1 in country_module_list.xml file.
  4. Error found : Premature end of data in tag module line 1 in country_module_list.xml file.
  5. Error found : Premature end of data in tag modules line 1 in country_module_list.xml file.

 

Anyone can help?

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...