Solving the warnings on servers with PHP 7

General questions pertaining to how certain issues can be resolved. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.

1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"
Locked
drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Solving the warnings on servers with PHP 7

Post by drake » 10 Feb 2018, 18:52

Hi everyone,

For people who's upgraded their servers to php 7.x and are concerned about warnings generated by Suffusion in error log, I've posted the explanation and the fix:
Solving the warnings generated by Suffusion on servers with PHP 7+

Colin
Posts: 5066
Joined: 27 Oct 2009, 10:46

Re: Solving the warnings on servers with PHP 7

Post by Colin » 11 Feb 2018, 01:29

Drake

Thanks very much for doing this.

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: Solving the warnings on servers with PHP 7

Post by drake » 11 Feb 2018, 07:30

No problem Colin. Even if I don't have time for answering here, I still like Suffusion and watch the forum from time to time. If I can help, I do this from hearth.

I refined the changes, so now, the files can be installed on any site, will not break the sites with older versions of PHP and the notices are removed on newer versions.

mbrsolution
Posts: 92
Joined: 01 Jan 2012, 15:58
Location: Australia
Contact:

Re: Solving the warnings on servers with PHP 7

Post by mbrsolution » 14 Feb 2018, 21:46

Thank you so much Drake. It is great to see that you are still supporting Suffusion. I also check from time to time the support forum. I also agree with your comment about Colin, he is doing a fantastic job in the support forum.

Let me know if you need any help.

Kind regards

mbrsolution
Posts: 92
Joined: 01 Jan 2012, 15:58
Location: Australia
Contact:

Re: Solving the warnings on servers with PHP 7

Post by mbrsolution » 19 Feb 2018, 16:35

Hi @Drake, first of all thank you for sharing the latest version.

I just wanted to share with you that the download file you shared in the following URL https://aquoid.com/forum/viewtopic.php?f=4&t=34241 is zipped twice. I am not sure if this is how you wanted to share the latest version of Suffusion or not. If it is then perhaps you might like to add a comment letting everyone know that they need to unzip the folder and then zip Suffusion again so they can upload it to the server and not receive the following error message.
Unpacking the package…

Installing the theme…

The package could not be installed. The theme is missing the style.css stylesheet.

Theme installation failed.
Also you might like to adjust line 10 in the following file /suffusion/functions.php and change it to 4.5.1. This is more a cosmetic minor issue.

Kind regards

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: Solving the warnings on servers with PHP 7

Post by drake » 20 Feb 2018, 13:49

Thank you Manuel,

I didn't thought to the problem of zip, as I always upload the theme by ftp and never using the WordPress uploader from appearance. But is a good point and I corrected this. Also did the cosmetics, I missed that spot :)

Locked