- Posts: 15
COMMUNITY FORUM
K2 article issue with PHP 7
- Marcel Albers
- Topic Author
- Offline
- New Member
Less
More
7 years 4 months ago - 7 years 4 months ago #162744
by Marcel Albers
K2 article issue with PHP 7 was created by Marcel Albers
When switching from PHP 5.6 to 7 the K2 article pages are not shown, empty page. The browser tab shown this error:
When I replace the GK error.php with the original Joomla error.php I receive this error:
Other pages, like standard Joomla articles, works normally with PHP7.
I've already asked on Gavick forum for help, but did not receive any response yet.
Joomla: 3.7.2
K2: 2.8.0
I'm unable to attach the error.php file while 'add file' is not working in the forum topic.
line 58 of the GK error.php looks like:
best regards
Notice: Undefined property: JDocumentHtml::$error in /home/www/public_html/templates/gk_musicstate/error.php on line 58 <br /> <b>jos-Error</b>: Call to a member function getCode() on null<br />
When I replace the GK error.php with the original Joomla error.php I receive this error:
jos-Warning: You are not authorised to view this resource.
Other pages, like standard Joomla articles, works normally with PHP7.
I've already asked on Gavick forum for help, but did not receive any response yet.
Joomla: 3.7.2
K2: 2.8.0
I'm unable to attach the error.php file while 'add file' is not working in the forum topic.
line 58 of the GK error.php looks like:
<title><?php echo $this->error->getCode(); ?>-<?php echo $this->title; ?></title>
best regards
Last edit: 7 years 4 months ago by Marcel Albers. Reason: K2 version changed from 4.8.0 to 2.8.0
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #162748
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2 article issue with PHP 7
Hello, the notice is coming from a template file, not K2's core.
You were correct to contact Gavick.
You were correct to contact Gavick.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Marcel Albers
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
7 years 4 months ago #162856
by Marcel Albers
Replied by Marcel Albers on topic K2 article issue with PHP 7
I was able to solve the issue with K2 items, SEF and PHP7 by completely backup and restore the site. Remarkable or not? I'm used the current .htaccess file.
This forum topic leads to the solution.
This forum topic leads to the solution.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 months ago #162861
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2 article issue with PHP 7
Nice to hear that you sorted this out :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.