[Resolved] LiteMage error with another module

Status
Not open for further replies.
#1

Hi All,
I am using a module in the backend that updates inventory, when i save the changes it throws this error;
Not sure how to diagnose or work out whats wrong? Looks like its trying to purge the litemage cache but cant???

Fatal error
: Call to a member function getId() on null in ...../app/code/community/Litespeed/Litemage/Model/Observer/Purge.php on line 126
 

Pong

Administrator
Staff member
#2
Most likely a PHP code issue. I would suggest you run off LiteMage to test your code changes. You can even temporally turn off LiteMage for a particular URL from browser.

https://www.litespeedtech.com/suppo...turn_off_litemage_for_certain_urls_in_browser

Sometime customized variables in injected block may also cause problem.

https://www.litespeedtech.com/suppo...ninitialized_php_variables_in_injected_blocks

If the problem persists, we may need temp root access to check your module's source code. You can PM me server info.
 
#3
Hi Pong,

Just got the same error with standard backend use case in Magento; might be a bug i think.
I wanted to bulk update some attributes, so selected them all from the manage products grid, went update attributes, changed the stock status, pressed update and then got the same error.
What i think its trying to do is purge the cache of those items because the stock status has changed for the front end (out of stock vs in stock) - might be something wrong with the logic. I can't see the code in that file because its encrypted (purge.php).
Ill send through server details so you can see.

Rudi
 
Status
Not open for further replies.
Top