website broken by changing function.php

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
clunsyman
Posts: 26
Joined: 12 Jun 2012, 05:32

website broken by changing function.php

Post by clunsyman » 01 Oct 2013, 01:19

After changing function.php with a script it did not work. So I uploaded the original function.php and now the website is out of the air and gives following messages. Help what to do??

I Warning: Missing argument 2 for suffusion_get_formatted_options_array(), called in /home/assennl/public_html/wp-content/themes/suffusion/admin/theme-options-theme-skinning.php on line 91 and defined in /home/assennl/public_html/wp-content/themes/suffusion/functions.php on line 2195

Warning: Invalid argument supplied for foreach() in /home/assennl/public_html/wp-content/themes/suffusion/functions.php on line 2199

Warning: Missing argument 2 for suffusion_get_formatted_options_array(), called in /home/assennl/public_html/wp-content/themes/suffusion/admin/theme-options-layouts.php on line 804 and defined in /home/assennl/public_html/wp-content/themes/suffusion/functions.php on line 2195

Warning: Invalid argument supplied for foreach() in /home/assennl/public_html/wp-content/themes/suffusion/functions.php on line 2199

Fatal error: Call to undefined function suffusion_get_horizontal_components() in /home/assennl/public_html/wp-content/themes/suffusion/admin/theme-options-layouts.php on line 969 a script to the file function.php. This did not work so I uploaded the original function.php and now the website gives:

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

Re: website broken by changing function.php

Post by Colin » 01 Oct 2013, 03:13

Using ftp delete the Suffusion theme folder. Then reinstall the theme from Wordpress.org

clunsyman
Posts: 26
Joined: 12 Jun 2012, 05:32

Re: website broken by changing function.php

Post by clunsyman » 01 Oct 2013, 03:58

Thanks Colin it is working again pfff...

Locked