Skip to main content

Support Policy

We only provide official support for Solidres's subscribers, all subscribers can request support by using forum or support ticket system. For more information please check our Support Policy at www.solidres.com/support-policy

[Solved] HTTP 500 "Layout default not found" on /partners/partner-dashboard/invo

More
5 days 3 hours ago #21862 by akuzmin72
[Solved] HTTP 500 "Layout default not found" on /partners/partner-dashboard/invoices (Joomla 6.2.1, Solidres 4.8.0, Hub 2.6.0, Lumina 1.3.0)
Environment:
- Joomla: 6.2.1
- Solidres: 4.8.0
- Solidres Hub: 2.6.0
- Template: Lumina v1.3.0

Problem (What Was Happening):
Opening **Invoices** (`/partners/partner-dashboard/invoices`) from the HUB partner dashboard (`hub.navbar`) on the Joomla site frontend resulted in an **HTTP 500 — Layout default not found** error. Although invoices worked in the backend and could be accessed from a reservation, the frontend view (`Joomla\Component\Solidres\Administrator\View\Invoices\HtmlView`) did not search the invoice plugin's layout directory when running in the `site` client context.

Solution (What Changed):
The frontend partner dashboard now loads `/partners/partner-dashboard/invoices` cleanly without the `500` layout error, displaying the invoices list with `hub.navbar` intact.

How We Fixed It:
- Target View file: `/www/booking.san-abkhazia.ru/plugins/solidres/invoice/administrator/components/com_solidres/src/View/Invoices/HtmlView.php`
- Target layout directory: `/www/booking.san-abkhazia.ru/plugins/solidres/invoice/administrator/components/com_solidres/tmpl/invoices` (containing `default.php` and `default_actions.php`)
- Code change: In `HtmlView::display($tpl = null)`, right before `parent::display($tpl);`, added a check for `$this->isSite` and registered the plugin's template directory via `$this->addTemplatePath(...)`:

if ($this->isSite) {
    $this->addTemplatePath(
        JPATH_PLUGINS . '/solidres/invoice/administrator/components/com_solidres/tmpl/invoices'
    );
}

- Verification: Saved `HtmlView.php` (`644`), cleared the Joomla cache, and opened `/partners/partner-dashboard/invoices` in the partner dashboard, confirming the page rendered normally without a `500` error.

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

More
5 days 3 hours ago #21863 by akuzmin72
P.S. We actually ran into this same issue a few months ago on another site running Joomla 6.1.4, Solidres 4.4.0, Hub v2.3.0, and Lumina v1.1.0.

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

More
1 day 19 hours ago #21865 by solidres
Hi,

Thanks for the detailed report. You're right: this is a bug in the Invoice add-on, versions 2.1.0 to 2.2.1, which also explains your other site. We plan to fix it in Invoice 2.2.2.

Until then, your change works, but it makes Joomla ignore any template override of this page. To keep overrides working, replace your addTemplatePath() call with this line, inside the same if ($this->isSite):

$this->_path[] = JPATH_PLUGINS . '/solidres/invoice/administrator/components/com_solidres/tmpl/invoices';

Please make this change only in the Invoices view. Updating Invoice will overwrite it; with 2.2.2 you won't need it.

Regards,

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

Moderators: solidres

All the things you need to make your work easier. Did you like Solidres?