litespeedtech / lscache-joomla

LSCache plugin for Joomla
30 stars 18 forks source link

Joomla! 4.2.8 + LScache "latest": problems with Virtuemart #57

Open Darko-F opened 1 year ago

Darko-F commented 1 year ago

Hi I have similar problem as is describe here https://www.litespeedtech.com/support/forum/threads/joomla-4-2-8-lscache-latest-problems-with-virtuemart-administration.21495/ Joomla! Version 4.2.8 PHP Version 8.1.13

when visit component Virtuemart Front end: Warning : Undefined property: stdClass::$vary_language in /home/siga01/domains/strugarstvo.si/private_html/plugins/system/lscache/lscache.php on line 284

And when visit component in administrtor: An error has occurred. 0 Call to undefined method Joomla\Event\Dispatcher::register() Call stack

Function Location

1 () JROOT/plugins/system/lscache/components/com_virtuemart.php:15 2 LSCacheComponentVirtueMart->onRegisterEvents() JROOT/plugins/system/lscache/components/helper.php:89 3 LSCacheComponentsHelper->registerEvents() JROOT/plugins/system/lscache/lscache.php:161 4 plgSystemLSCache->onAfterRoute() JROOT/libraries/src/Plugin/CMSPlugin.php:279 5 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 6 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:107 7 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/Application/AdministratorApplication.php:446 8 Joomla\CMS\Application\AdministratorApplication->route() JROOT/libraries/src/Application/AdministratorApplication.php:171 9 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294 10 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61 11 require_once() JROOT/administrator/index.php:32

Also I must add I install plugin and enable but I don't see headers "hit" "miss" in console no matter what I do.

Darko-F commented 1 year ago

And VirtueMart 4.0.12

fontanil commented 1 year ago

Hi,

I created the thread on the LiteSpeed forum (as RobertG). I didn't test the frontend. Two days ago I sent an email with all data to access the backend of a test site. I hope that the staff will find how to solve the errors.

Darko-F commented 1 year ago

@fontanil do you see front end in console headers "hit" "miss" from lite sped server or is this unique for me.?

fontanil commented 1 year ago

Sorry, I don't remember how to see headers informations.

On the frontend, page of Virtuemart main category, I have the same message (Call to undefined method Joomla\Event\Dispatcher::register() ) than in the administration.

Darko-F commented 1 year ago

From a non-logged-in (or private) browser, navigate to your site, and open the developer tools (usually, right-click > Inspect).

  1. Open the Network tab in console.
  2. Refresh the page.
  3. Click the first resource. This should be an HTML file. For example, if your page is http://example.com/webapp/, your first resource should either be something like example.com/webapp/ or webapp/.
  4. You should see headings similar to these: X-LiteSpeed-Cache: miss or hit

https://docs.litespeedtech.com/lscache/lscjoomla/installation/

Hope this help.

fontanil commented 1 year ago

Thanks Darko-F,

I find only "Server : Litespeed", not "X-liteSpeed-Cache" "date: Mon, 06 Mar 2023 12:45:53 GMT server: LiteSpeed x-content-type-options: nosniff alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46" X-Firefox-Spdy: h2" nothing else

Darko-F commented 1 year ago

Ok thanks We can confirm then that is this issue connected with error above, I assume that when this will be fixed also X-LiteSpeed-Cache will work.

I wonder why my host didn't stick to Apache and Memcached, is pain to configure these lite speed, plugin never work us is described, the last time when I try to work with on J3 I just uninstall it to hard to configure it correctly on complex site. Unfortunately I have bigger site to work with, so I need some kind cache.

fontanil commented 1 year ago

On another website (same server, same Joomla! version and PHP version) without Virtuemart, I don't find the line "X-liteSpeed-Cache", too.

Darko-F commented 1 year ago

I see, I try plugin only with one website so according theirs document nothing is cached try enter your website URL here https://check.lscache.io/ and see if work

Darko-F commented 1 year ago

I submit #58