Hi,
Using Phoca Maps 4.0.1 on Joomla 4.3.4.
The route print link throws a 404 error on the print page: syntax error, unexpected identifier "CMS", expecting "{"
Anybody has an idea, maybe even the solution?
Thanks in advance
Print route error
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Print route error
Hi, can you enable debug mode in your Joomla and paste here whole error message?
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 19 Jan 2022, 16:50
Re: Print route error
Hi Jan,
This is the error message on the print page window.
Remember, it throws a 404 page, so no route details.
syntax error, unexpected identifier "CMS", expecting "{"
Call stack
# Function Location
1 () JROOT/templates/2023/component.php:13
2 Joomla\CMS\Document\HtmlDocument->_loadTemplate() JROOT/libraries/src/Document/HtmlDocument.php:796
3 Joomla\CMS\Document\HtmlDocument->_fetchTemplate() JROOT/libraries/src/Document/HtmlDocument.php:613
4 Joomla\CMS\Document\HtmlDocument->parse() JROOT/libraries/src/Application/CMSApplication.php:1012
5 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:724
6 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:298
7 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
8 require_once() JROOT/index.php:32
This is the error message on the print page window.
Remember, it throws a 404 page, so no route details.
syntax error, unexpected identifier "CMS", expecting "{"
Call stack
# Function Location
1 () JROOT/templates/2023/component.php:13
2 Joomla\CMS\Document\HtmlDocument->_loadTemplate() JROOT/libraries/src/Document/HtmlDocument.php:796
3 Joomla\CMS\Document\HtmlDocument->_fetchTemplate() JROOT/libraries/src/Document/HtmlDocument.php:613
4 Joomla\CMS\Document\HtmlDocument->parse() JROOT/libraries/src/Application/CMSApplication.php:1012
5 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:724
6 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:298
7 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
8 require_once() JROOT/index.php:32
-
- Phoca Member
- Posts: 11
- Joined: 19 Jan 2022, 16:50
2nd Re: Print route error
Maybe not related, but when I enable Error Reporting I get this on the map page :
Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ali38000/domains/ali-rhonealpes.org/public_html/components/com_phocamaps/phocamaps.php on line 30
Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ali38000/domains/ali-rhonealpes.org/public_html/components/com_phocamaps/phocamaps.php on line 30
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Print route error
Hi, thank you for the info, yes, the deprecated is not related. If you disable SEF, does it work for you?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 19 Jan 2022, 16:50
Re: Print route error
Hi Jan,
No, it doesn't work with SEF enabled either.
No, it doesn't work with SEF enabled either.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Print route error
Hard to say, what can be wrong there, can I see the site where this occurs?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 19 Jan 2022, 16:50
Re: Print route error
I switched off Print route for now.
Would you like admin access?
It would avoid Print to be enabled longer than you need it.
If you're okay with that, please tell me how to send you the login details.
Would you like admin access?
It would avoid Print to be enabled longer than you need it.
If you're okay with that, please tell me how to send you the login details.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Print route error
Hi, make one post again so your post count in this forum is 10, then you will be able to send me PMs here.
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Print route error
Hi, you have just syntax error in your template:
use Joomla\ CMS\ Factory;
use Joomla\ CMS\ HTML\ HTMLHelper;
Should be:
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
Fixed it, works OK now:
Jan
use Joomla\ CMS\ Factory;
use Joomla\ CMS\ HTML\ HTMLHelper;
Should be:
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
Fixed it, works OK now:
Jan
If you find Phoca extensions useful, please support the project