Deprecated: Non-static method...

Rate this topic: Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.Evaluations: 1, 6.00 on the average.6.00 out of 6 based on 1 vote(s)
GK User
Thu Jun 29, 2017 2:14 pm
Reply with quote
Report this post
Hi to All :)
I am using latest template version (3.13.1) on Joomla 3.6.5
I had changed PHP version from 5.4 to 7.0 and on the bottom of the page I've got this message (same message for PHP version 5.6 also):

Deprecated: Non-static method JApplicationSite::getMenu() should not be called statically in /home/hadahr/public_html/antidoping-hzta.hr/templates/gk_gamenews/lib/framework/helper.layout.php on line 118

Deprecated: Non-static method JApplicationCms::getMenu() should not be called statically in /home/hadahr/public_html/antidoping-hzta.hr/libraries/cms/application/site.php on line 272


Can someone help me, plese :)

Best Regards

Robert
User avatar
Junior Boarder

GK User
Thu Jun 29, 2017 2:35 pm
Reply with quote
Report this post
Addendum
Those massages were on frontpage only. A lot more similar messages were on sidebar where I use GK Modules.
User avatar
Junior Boarder

teitbite
Fri Jun 30, 2017 3:28 pm
Reply with quote
Report this post
Hi

Those are just messages from new PHP. PHP7 is trying to force using a new programming standards, but everything will work despite of that. Please simply disable showing error messages in global joomla configuration.
User avatar
Moderator

GK User
Sat Jul 01, 2017 9:42 am
Reply with quote
Report this post
Thank You very much for quick and concise reply :)

I've changed PHP version to 7 in CPanel.

Went to Administration Panel to disable messages as you suggested...

But...doing this I ran into another problem.
On Menu: System>Global Configuration>Tab: System Error occurred.
It says: 0 Call to undefined function set_magic_quotes_runtime()

What shall I do? Can you help me, please?

Best Regards

Robert
User avatar
Junior Boarder

teitbite
Mon Jul 03, 2017 10:53 am
Reply with quote
Report this post
Hi

As the error says Your PHP version lacks function set_magic_quotes_runtime(). You can add it in php.ini or ask Your hosting provider to add it for You.

You can also do the opposite and disable using Magic Quotes entirely.
User avatar
Moderator

GK User
Mon Jul 03, 2017 12:33 pm
Reply with quote
Report this post
Hi
Thanks for your answer.
I want to disable it entirely.
Can you, please, give me some pointers how to do that?
Best Regards
Robert
User avatar
Junior Boarder

teitbite
Tue Jul 11, 2017 2:14 pm
Reply with quote
Report this post
Hi

It can only be disabled on Your server, in php.ini file. If You do not have an access to this file (most of the server I've seen doesn't) than ask Your hosting provider to do this for You.

Here some extra info bout it: http://php.net/manual/en/security.magic ... abling.php
User avatar
Moderator

GK User
Thu Jul 13, 2017 7:29 am
Reply with quote
Report this post
Thank You very much :)
User avatar
Junior Boarder

teitbite
Mon Jul 17, 2017 3:07 pm
Reply with quote
Report this post
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.