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.
Pages: 1
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
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. ![]()
Offline
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
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
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();
Offline
Hi David,
SPOT ON! Works perfectly now.
Thank you very much for your valuable time and assistance.
Lee
Offline
You`re welcome Lee.
Glad we got it sorted.
Offline
Pages: 1