Welcome, Guest
Username Password: Remember me

Fatal error
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Fatal error

Fatal error 6 years, 8 months ago #21118

Fatal error: Cannot redeclare renderMessage() (previously declared in /var/www/scorp152/data/www/my site.com/plugins/system/yjsg/includes/yjsgcore/classes/extend/30/html/message.php:12) in /var/www/scorp152/data/www/my site.com/templates/mobile_basic/html/message.php on line 13

what could be the problem

Re: Fatal error 6 years, 8 months ago #21119

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Joomla allows templates to define its own function renderMessage() to generate html snippet for messages area in any suitable way, and our mobile templates do it. But in your case you use Joomla Template Framework plugin that defines that function prior to any template is loaded that results in above issue. The problem is that Joomla Template Framework is system plugin (i.e. it is loaded at Joomla initialization stage) and MobileJoomla cannot disable it (plugins of other types can be disabled).

From source of the Joomla Template Framework plugin it looks like renderMessage definition might be skipped if MobileJoomla plugin is loaded before Joomla Template Framework plugin. So , could you open Mobile Joomla! system plugin settings and check that its ordering (-99 by default) is less than ordering of the Joomla Template Framework plugin (-5000 by default), that is most likely one of them should be changed appropriately?
  • Page:
  • 1
Time to create page: 0.06 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.