500 error after sending order

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 5 months ago #352409

-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.1
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : 500 Error

Hi

After clicking the order button I get a 500 error.

Here is debug information:

There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry.
Joomla\CMS\WebAsset\Exception\ UnknownAssetException
in /home/folder1/sub.domain.dd/libraries/src/WebAsset/WebAssetRegistry.php (line 134)

        {
            // Check if any new file was added
            $this->parseRegistryFiles();
            if (empty($this->assets[$type][$name])) {
                throw new UnknownAssetException(sprintf('There is no "%s" asset of a "%s" type in the registry.', $name, $type));
            }
            return $this->assets[$type][$name];
        }

WebAssetRegistry->get('preset', 'template.cassiopeia.ltr') in /home/folder1/sub.domain.dd/libraries/src/WebAsset/WebAssetManager.php (line 263)
WebAssetManager->useAsset('preset', 'template.cassiopeia.ltr') in /home/folder1/sub.domain.dd/libraries/src/WebAsset/WebAssetManager.php (line 197)
WebAssetManager->__call('usepreset', array('template.cassiopeia.ltr')) in /home/folder1/sub.domain.dd/templates/mytemplate/error.php (line 66)
require('/home/folder1/sub.domain.dd/templates/mytemplate/error.php') in /home/folder1/sub.domain.dd/libraries/src/Document/HtmlDocument.php (line 741)
HtmlDocument->_loadTemplate('/home/folder1/sub.domain.dd/templates/mytemplate', 'error.php') in /home/folder1/sub.domain.dd/libraries/src/Document/HtmlDocument.php (line 796)
HtmlDocument->_fetchTemplate(array('template' => 'mytemplate', 'directory' => '/home/folder1/sub.domain.dd/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/folder1/sub.domain.dd/libraries/src/Document/HtmlDocument.php (line 613)
HtmlDocument->parse(array('template' => 'mytemplate', 'directory' => '/home/folder1/sub.domain.dd/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/folder1/sub.domain.dd/libraries/src/Document/HtmlDocument.php (line 631)
HtmlDocument->render(false, array('template' => 'mytemplate', 'directory' => '/home/folder1/sub.domain.dd/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/folder1/sub.domain.dd/libraries/src/Document/ErrorDocument.php (line 139)
ErrorDocument->render(false, array('template' => 'mytemplate', 'directory' => '/home/folder1/sub.domain.dd/templates', 'debug' => true, 'csp_nonce' => null, 'templateInherits' => '', 'params' => object(Registry), 'file' => 'error.php')) in /home/folder1/sub.domain.dd/libraries/src/Error/Renderer/HtmlRenderer.php (line 78)
HtmlRenderer->render(object(Error)) in /home/folder1/sub.domain.dd/libraries/src/Exception/ExceptionHandler.php (line 121)
ExceptionHandler::render(object(Error)) in /home/folder1/sub.domain.dd/libraries/src/Exception/ExceptionHandler.php (line 72)
ExceptionHandler::handleException(object(Error)) in /home/folder1/sub.domain.dd/libraries/src/Application/CMSApplication.php (line 322)
CMSApplication->execute() in /home/folder1/sub.domain.dd/includes/app.php (line 61)
require_once('/home/folder1/sub.domain.dd/includes/app.php') in /home/folder1/sub.domain.dd/index.php (line 32)
Error

Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()

How can I solve this?

Update:
There must be a problem with the template I guess. Using other template seems to work. I will check deeper.

Patrick


This message contains confidential information

Last edit: 1 year 5 months ago by pat01.

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

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 5 months ago #352412

Switching to another template causes issues as well:

Die angeforderte Seite konnte nicht gefunden werden.

Während der Anfrage ist ein Fehler aufgetreten.

Die Seite kann nicht angezeigt werden, weil:

    ein veraltetes Lesezeichen aufgerufen wurde.
    eine falsche Adresse aufgerufen wurde.
    über eine Suchmaschine ein veralteter Index dieser Website aufgerufen wurde.
    keine Zugriffsrechte für diese Seite vorhanden sind.

Zur Startseite wechseln

Bei Problemen ist der Administrator dieser Website zuständig.

    0 Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()

What is the problem?

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 5 months ago #352414

Hi,

For the first error message "There is no "template.cassiopeia.ltr" asset of a "preset" type in the registry." here is a page where people talk about this and what to do:
www.hotjoomlatemplates.com/support-forum...00-errorsite?start=0

Regarding the second error "Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()", this means that you have something on your website which isn't compatible with Joomla 4. It could be anything. Please activate the "debug" setting of the Joomla configuration and try again. It will display an error message with more information, including the file where the problem is happening. That will allow us to tell you what to do.
The most likely cause is that you have an override of the "preload" section of an email of HikaShop in System>Emails which is based on an old version of HikaShop, and this old override contains code not compatible with Joomla 4:
www.hikashop.com/forum/install-update/90...od-error/352361.html
But it could be something else. Only the debug information will allow us to say where is the problem for sure.

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

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 5 months ago #352416

Hi

I removed System > email custom changes but it does not solve the problem.

If I set PHP 7.4 instead of PHP 8.1 then then ordering works fine.

When I did migrate from J3 to J4 I got some warnings, that some Hikashop plugins might not be compatible.
Is this possible? I suppose all Hika plugins do work with J4 as well?

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 5 months ago #352417

Hi,

All the plugins we provide are compatible with Joomla 4. However, they need to be up to date on your website for that. For the plugins included in HikaShop, that's not a problem since they get updated together with HikaShop. But for plugins you installed separately, like the ones from our marketplace, you need to update them yourself.
Similarly, the plugins for HikaShop but that we didn't develop, like the payment plugins of third party developers we list in our documentation, need to be updated separately.

As I said, the email was just a guess. To be able to tell you what to do, we need the full error message you can get when you activate the debug setting of Joomla and access the page with the issue again.

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

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 5 months ago #352420

Hi

I have no plugin from marketplace installed.

The error has gone now. Here is what I did:

- Removed installation
- Installed it again from a backup

Now it works fine. I guess there must have gone something wrong when I installed it the first time (corrupt or missing file?).

The only issue I have now is, that after sending the order the cart is not empty.
What could cause this?

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 5 months ago #352424

Hi,

The most common cause for what you describe is actually a missunderstanding.
When you have the "enable multi cart" setting activated in the HikaShop configuration, it means that users can have several carts at the same time. And when you do checkout tests with issues, you might end up with many carts with the same content linked to your user. So at the end of the checkout, when the current cart is cleared, the next cart is loaded, but since it's the same content, you think the cart is not cleared.
Go in Users>Carts in your backend, delete the carts of the user account you're using for your tests and try again. Hopefully, the cart will be deleted at the end of the checkout.

The following user(s) said Thank You: pat01

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

  • Posts: 48
  • Thank you received: 4
  • Hikashop Business
1 year 5 months ago #352511

Hi

Disabling "enable multi cart" setting did teh trick. I have no idea why this was set.

Thanks a lot for your help.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum