Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 29-09-2011 04:47:37

CYASoftware
Members
Registered: 29-09-2011
Posts: 4

Errors after host upgraded PHP

Hi,

First - Thank you for a great script.

I have just discovered errors are being posted when executing the index.php page of the Friend script. I feel confident this relates to an upgrade of PHP my host recently performed on my web server.

Rather than attempting to explain, as I KNOW NOTHING about PHP, may I ask you to check it for yourself at http://www.cya2day.com/friend/index.php

If it is possible for you to tell me what to change I will be delighted to fix it.

Thanks very much.

Lee

Offline

#2 29-09-2011 07:31:41

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,066

Re: Errors after host upgraded PHP

Hi Lee,

It is from the upgrade as PHP added a development mode to flag deprecated functions. Its for developers only. To remove from your existing installation you need to open the main index.php file and set your error reporting to:

error_reporting(0);

or re-download and use the latest version which fixes these errors.

Glad you like the script. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 29-09-2011 16:52:05

CYASoftware
Members
Registered: 29-09-2011
Posts: 4

Re: Errors after host upgraded PHP

David,

Thank you for a very timely reply. I will modify the file and see what develops.

I hope the donation was sufficient.

Lee

Offline

#4 29-09-2011 17:15:46

CYASoftware
Members
Registered: 29-09-2011
Posts: 4

Re: Errors after host upgraded PHP

Hi David,

I modified index.php as you described above and turned off the error_reporting. I see a big improvement, however, there are now only two errors shown. They are:


Deprecated: Assigning the return value of new by reference is deprecated in /home/customap/public_html/cya2day/friend/index.php on line 29

Deprecated: Assigning the return value of new by reference is deprecated in /home/customap/public_html/cya2day/friend/index.php on line 195

You can see it in action here:  http://www.cya2day.com/friend/index.php

FWIW - I downloaded the latest and copied just the index.php file from the root to my site and when the page loaded it was blank. Nothing showed at all. What is there now is the original index.php file that I modified per your suggestion.

Any guidance or suggestions will be most welcome.

Lee

Offline

#5 29-09-2011 18:32:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,066

Re: Errors after host upgraded PHP

Hi Lee,

I can`t think what might be different. To fix the above errors, find instances of the following in the index.php file:

$tpl &= new Savant2();

Remove the ampersand:

$tpl = new Savant2();


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#6 29-09-2011 19:34:00

CYASoftware
Members
Registered: 29-09-2011
Posts: 4

Re: Errors after host upgraded PHP

Hi David,

SPOT ON!  Works perfectly now.

Thank you very much for your valuable time and assistance.

Lee

Offline

#7 30-09-2011 07:00:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,066

Re: Errors after host upgraded PHP

You`re welcome Lee.

Glad we got it sorted.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy