Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S SobiPro
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Sigsiu.NET GmbH
  • SobiPro
  • Issues
  • #244

Closed
Open
Created Aug 04, 2023 by Sławek Sikora@SikorReporter

duplicating templates with blank space in the name

When we duplicate a template and we use blank space in the new template name, like 'new template' there will be created tplnew-template as a abstract class name in the template.php file. Unfortunately it lead to the following fatal error at the front-end:

 0 syntax error, unexpected token "-", expecting "{" 
  • Call stack
  • Function Location

  • 1 () JROOT/components/com_sobipro/usr/templates/nowy-szablon/template.php:38
  • 2 SPFrontView->registerFunctions() JROOT/components/com_sobipro/lib/views/view.php:323
  • 3 SPFrontView->display() JROOT/components/com_sobipro/lib/views/section.php:753
  • 4 SPSectionView->display() JROOT/components/com_sobipro/lib/ctrl/section.php:150
  • 5 SPSectionCtrl->view() JROOT/components/com_sobipro/lib/ctrl/controller.php:229
  • 6 SPController->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:578
  • 7 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
  • 8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
  • 9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
  • 10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
  • 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
  • 12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
  • 13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
  • 14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
  • 15 require_once() JROOT/index.php:32
Assignee
Assign to
2.3.5
Milestone
2.3.5
Assign milestone
Time tracking

footer

Legal Notice / Impressum | Data Protection / Datenschutzinformation