Error On Template - Question | JoomShaper

Error On Template

LG

Lorna Guttormson

Template 5 days ago

I have pitech 1.0.1 and am getting an error on J5 : PHP Warning: Undefined variable $currentDate in /home/ottawaoc/public_html/templates/pitech/html/com_content/article/default.php on line 53

This comes in this code: $isExpired = JVERSION < 4 ? (strtotime($this->item->publish_down) < strtotime(Factory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate() : !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate;

As I have J5 it should never get to the line using $currentDate.  I understand this would be because JVERSION is J3 code - not J5.  Is there updated code for Pitech?  
0
5 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 days ago #214272

Hi there!

Thank you for bringing this to our attention, and I sincerely apologize for the inconvenience caused.

To assist you more effectively, may I kindly request temporary administrative access to your site? This will allow me to thoroughly investigate and resolve the issue for you.

Before sharing the credentials, I strongly recommend taking a complete backup of your site to ensure all data remains secure.

Looking forward to your response.

Best regards

0
LG
Lorna Guttormson
Accepted Answer
1 day ago #214553

My apologies. I thought I had replied but I obviously got distracted. Likely because we have recently implemented MFA security on administrator and super user accounts.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 1 day ago #214563

Please share your site url

0
LG
Lorna Guttormson
Accepted Answer
22 hours ago #214620

Sorry - sent in hidden content

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 22 hours ago #214624

Please share the page link where you are getting the error

0