Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

yt framwork problem with php 7
(1 viewing) (1) Guest

TOPIC: yt framwork problem with php 7

yt framwork problem with php 7 7 years, 5 months ago #30181

Hi,

in this time i use php 5.6 on my site (724Press) without any problem. but i want use php 7. after choose it (from php selector of cpanel) my front-end go down. error in my log is :

[28-Nov-2016 05:51:41 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; YtFrameworkTemplate has a deprecated constructor in /home/
724/public_html/plugins/system/yt/includes/site/lib/yt_template.php on line 16 
[28-Nov-2016 05:51:41 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; YtFrameworkRenderXML has a deprecated constructor in /home
/724/public_html/plugins/system/yt/includes/site/lib/yt_renderxml.php on line 13 
[28-Nov-2016 05:51:41 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; YtObject has a deprecated constructor in /home/724/p
ublic_html/templates/sj_imag/menusys/ytobject.php on line 13


so i think yt framwork not compatable with php 7 yet. yes? and if yes why you dont release compatable version?!
Last Edit: 5 years, 5 months ago by Vahid.

Re: yt framwork problem with php 7 7 years, 4 months ago #30213

  • usersmart1
  • OFFLINE
  • Moderator
  • Posts: 1364
  • Karma: 20
Dear Vahid,

Our developer are checking this issue. I will inform to you as soon as possible.

Thanks & regards!
The following user(s) said Thank You: Vahid

Re: yt framwork problem with php 7 7 years, 4 months ago #30446

Hi Again

And do you have any new news of this issue?!

Re: yt framwork problem with php 7 7 years, 3 months ago #31448

Hello

and can you please answer to this issue so other users can use it too?

Re: yt framwork problem with php 7 7 years, 3 months ago #31462

Dear Vahid

Please go to /plugins/system/yt/includes/site/lib/yt_template.php and find:

function YtFrameworkTemplate ($template =null, $cookie) {

=> change to:

fnction __construct ($template =null, $cookie) {

go to /plugins/system/yt/includes/site/lib/yt_renderxml.php and find:

function YtFrameworkRenderXML($xmlfile){

=> change to:

fnction __construct ($xmlfile){

- go to templates/sj_imag/menusys/ytobject.php and find:

function YtObject()

=> change to:

fnction __construct()

you can refer read more here: stackoverflow.com/questions/36339774/php7-constructor-class-name

thanks

Re: yt framwork problem with php 7 7 years, 3 months ago #31548

Hi

thank you for them. but for other users which read this topic i must say change "fnction" with "function" in above code if you want your site dont go down!

also you can release new version or update patch for all users to solve this and same issue.

thank you
The following user(s) said Thank You: andyricor
Time to create page: 0.23 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes