Keyword

call to a member function purgeprivate() on null

More
4 years 1 month ago #178346 by SD
J: 3.9.25
K2: 2.10.3

I have a user that got the error "call to a member function purgeprivate() on null" when attempting to login to the site and post an article.

The weird thing is they were able to login once and post. Days later when attempting to log back in they get the error. I've even gone as far as deleting their profile, creating a brand new profile then once created the same thing happened once again. This particular user has had a user profile to post for several years now and just recently in the last two or three weeks has this started. The other users have no issues with logging in and posting nor get this error.

There are no other errors but just a page with that error listed. This has happened in both Safari and Chrome.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #178379 by SD
Bumping this back up.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #178408 by Eoin Feeney
Replied by Eoin Feeney on topic call to a member function purgeprivate() on null
I got the same error recently. I think it was due to an incorrect login, but I'm a bit baffled too.

I'm using PHP7.3 are you?

I posted here: joomla.stackexchange.com/questions/28970/0-call-to-a-member-function-purgeprivate-on-null

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #178410 by SD
No, I am running 7.4. However I test 7.3 at the recommendation of my web host with no change.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #178411 by Eoin Feeney
Replied by Eoin Feeney on topic call to a member function purgeprivate() on null
I have a feeling this may be a Joomla thing not a K2 thing as I'm not using K2

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178456 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
It's most likely some 3rd party module/plugin. That function is not part of K2: github.com/getk2/k2/search?q=purgeprivate

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago - 4 years 4 weeks ago #178470 by Eoin Feeney
Replied by Eoin Feeney on topic call to a member function purgeprivate() on null
For me this is from Litespeed Cache.

I went into cPanel and I went to Terminal and I did a search by copying and pasting this (right click to paste)

grep -Ri purgeprivate public_html


It returns

$this->plugin->lscInstance->purgePrivate("com_virtuemart.cart");

    
If you are also using J2Store or Virtumart or another cart, it could be the same thing. 

I opened a GitHub issue here that you may wish to follow:

github.com/litespeedtech/lscache-joomla/issues/42
Last edit: 4 years 4 weeks ago by Eoin Feeney.

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178472 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
This would explain why these LiteSpeed benchmarks render Joomla so fast in comparison to Nginx and other webservers :D

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178475 by Eoin Feeney
Replied by Eoin Feeney on topic call to a member function purgeprivate() on null
Because of PHP errors?

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178479 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
I was being ironic obviously :)

(and I'm referring to this www.litespeedtech.com/benchmarks/joomla)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178482 by Eoin Feeney
Replied by Eoin Feeney on topic call to a member function purgeprivate() on null
Aahhhh lost in textlation

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #178483 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
No worries. I was recently referred to that benchmark from a friend, so it was funnily connected with this issue...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 2 weeks ago #178659 by SD
I had litespeedcache installed but have since removed it and don't find any instance of purgeprivate running in the public_html directory.

Still waiting on confirmation from the user if the issue remains or not.

Please Log in or Create an account to join the conversation.

More
4 years 2 weeks ago #178668 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
Ensure there is no plugin for LS as well. If there is, remove it.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 2 weeks ago #178673 by SD

Fotis wrote: Ensure there is no plugin for LS as well. If there is, remove it.

 

LS has been removed and the single user with the issue still reporting the error. I've had them try another browser, clear cache and even tried in private browsing.

I scanned the server files for anything related to LS and nothing returned back. Currently I'm running nginx web server.

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #178674 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
Search the site's codebase through a terminal if possible.
$ cd /to/the/site/files/
$ find . -iname "*.php" | xargs grep -i "purgeprivate("

This way you'll find where this function exists.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #178675 by SD
None found. This is the return.

[root@ssd public_html]# find . -iname "*.php" | xargs grep -i "purgeprivate("
grep: ./templates/ts_newslinen/__MACOSX/html/mod_login/._default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./templates/ts_newslinen/__MACOSX/html/mod_articles_latest/._default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./templates/ts_newslinen/html/mod_login/default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./templates/ts_newslinen/html/mod_articles_latest/default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./__MACOSX/templates/ts_newslinen/html/mod_login/._default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./__MACOSX/templates/ts_newslinen/html/mod_articles_latest/._default: No such file or directory
grep: Copy.php: No such file or directory
grep: ./__MACOSX/media/k2/assets/vendors/verot/class.upload.php: Is a directory
grep: ./media/k2/assets/vendors/verot/class.upload.php: Is a directory

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #178688 by JoomlaWorks
Replied by JoomlaWorks on topic call to a member function purgeprivate() on null
I just told you what to search based on what you wrote initially. Ensure you copied the function name as it was originally shown in the error message.

Again, this is not part of K2.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago #178696 by SD

Fotis wrote: I just told you what to search based on what you wrote initially. Ensure you copied the function name as it was originally shown in the error message.

Again, this is not part of K2.
 

I did read the first line of the results. I'm reporting back that it did not find what you asked me to search. "[root@ssd public_html]# find . -iname "*.php" | xargs grep -i "purgeprivate(""

I got it, its not part of K2.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum