PHP Warning - Shortcode "Workaround"

General questions pertaining to how certain issues can be resolved. This forum is closed with effect from February 2019. Please post future requests on
Forum rules
This forum is closed with effect from February 2019. Please post future requests on

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 or
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?"
Posts: 91
Joined: 04 Sep 2012, 09:20

PHP Warning - Shortcode "Workaround"

Post by pscaffidi » 23 Oct 2015, 09:23

I was unable to find this mentioned anywhere in the forum and hope it might help someone.

I was seeing a lot of warnings in my PHP error log pertaining to Suffusion shortcodes. After extensive trial and error, I determined that using any suffusion shortcode without a parameter will cause these errors.

My workaround is to add a fake parameter to every shortcode that does not normally have a parameter.

For example, in the footer customization for one of my sites I was using the following shortcodes:

[suffusion-the-year] [suffusion-site-link'] - [suffusion-loginout]

I have changed the above to:

[suffusion-the-year fake='parameter'] [suffusion-site-link fake='parameter'] - [suffusion-loginout fake='parameter']

Now, the PHP warnings have disappeared and the shortcodes still function fine.

Hope this helps someone.