Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Darko-F opened this issue Mar 3, 2023 · 10 comments
Open

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

Darko-F opened this issue Mar 3, 2023 · 10 comments

Comments

@Darko-F
Copy link

Darko-F commented Mar 3, 2023

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
Copy link
Author

Darko-F commented Mar 3, 2023

And VirtueMart 4.0.12

@fontanil
Copy link

fontanil commented Mar 6, 2023

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
Copy link
Author

Darko-F commented Mar 6, 2023

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

@fontanil
Copy link

fontanil commented Mar 6, 2023

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
Copy link
Author

Darko-F commented Mar 6, 2023

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
Copy link

fontanil commented Mar 6, 2023

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
Copy link
Author

Darko-F commented Mar 6, 2023

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
Copy link

fontanil commented Mar 6, 2023

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
Copy link
Author

Darko-F commented Mar 6, 2023

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
Copy link
Author

Darko-F commented Mar 6, 2023

I submit #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants