fbpx

Trick or Treat - 30% OFF - Coupon Code: SCARY20 Grab the Deal!

Welcome, Guest
Username: Password: Remember me

TOPIC: Template crashed after Astroid framework update

Template crashed after Astroid framework update 1 month 3 weeks ago #24120

  • webdjam
  • webdjam's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hello everyone,
I updated the Astroid framework on one of my website, i did the update to the lasted joomla before the update to the version 2.41 of Astroid, now i have an error on the home page " Call to a member function get() on null" joomlaalger.org
Any idea about the issue, thank you
Djamel
Last Edit: 1 month 3 weeks ago by webdjam.
The administrator has disabled public write access.

Template crashed after Astroid framework update 1 month 3 weeks ago #24123

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4153
  • Thank you received: 609
  • Karma: 108
Hi Djamel,

We had this error in 2.4.0, not sure why you are having it on 2.4.1. Can you enable debug and error reporting and see what file is causing it?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Template crashed after Astroid framework update 1 month 3 weeks ago #24130

  • webdjam
  • webdjam's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hi Chetan,
I enabled the debug mode it seems that they are more then 23 lines of code with issue, the Astroid template zero still on the version 2.4.0, i will leave the debug mode enabled so you take a look.
Thanks,
Djamel
Attachments:
Last Edit: 1 month 3 weeks ago by webdjam. Reason: added a screenshot
The administrator has disabled public write access.

Template crashed after Astroid framework update 1 month 3 weeks ago #24177

  • hitesh99raj
  • hitesh99raj's Avatar
  • Offline
  • Administrator
  • Posts: 60
  • Thank you received: 20
  • Karma: 4
Hi Djamel,
Sorry for delayed reply, It seems you customized footer.php file. Please refer this document for updating your frontend folder's code in order to update your template.

github.com/joomdev/Astroid-Framework/wiki/Migrating-to-v2.4x

As we can see the error is in footer.php file on line 15. Please change code

from
$enable_footer = $template->params->get('footer', 0);
to
$params = Astroid\Framework::getTemplate()->getParams();
$document = Astroid\Framework::getDocument();

$enable_footer = $params->get('footer', 0);

And from
$footer_copyright = $template->params->get('footer_copyright');
to
$footer_copyright = $params->get('footer_copyright');

If you never edited the code of footer.php file then you can simply delete it.

Thanks,
Hitesh
The administrator has disabled public write access.
The following user(s) said Thank You: webdjam

Template crashed after Astroid framework update 1 month 3 weeks ago #24182

  • webdjam
  • webdjam's Avatar
  • Offline
  • Junior Member
  • Posts: 23
  • Karma: 0
Hi Hitesh ,
I preferred to set astroid-template-one as default template, i just exported the layout from the previous template, i edited the footer.php but the issue still there, I will take a closer look at it when will have sometime.
Thank you
Djamel
The administrator has disabled public write access.

Template crashed after Astroid framework update 1 month 2 weeks ago #24214

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4153
  • Thank you received: 609
  • Karma: 108
Hi Djamel,

If you have modified footer.php, I'd recommend renaming it to footer2.php (disabling the override) and that should fix the issue.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.326 seconds