June 10, 2013 at 9:54 pm #24609
Was adding in code for cropping of images in portfolio from this thread –
Ended up breaking website – now this pops up – cant login.
Warning: require_once(config-wpml/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/digitekd/public_html/wp-includes/functions.php on line 8
Fatal error: require_once() [function.require]: Failed opening required ‘config-wpml/config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/digitekd/public_html/wp-includes/functions.php on line 8
I can still edit the php code from cpanel – and I saved the original text previous to edit.
What should I be editing on line 8 to restore function?
Here is line 8
require_once( ‘config-wpml/config.php’ );June 11, 2013 at 10:49 am #124029
Corona doesn’t have WPML configuration. Please delete that line. Line 9 should have a code like this
require_once( 'framework/avia_framework.php' );
PeterJune 11, 2013 at 3:14 pm #124030
Warning: require_once(framework/avia_framework.php) [function.require-once]: failed to open stream: No such file or directory in /home/digitekd/public_html/wp-includes/functions.php on line 9
Fatal error: require_once() [function.require]: Failed opening required ‘framework/avia_framework.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/digitekd/public_html/wp-includes/functions.php on line 9
I checked avia_framework.php – everything seems to be in order.
Its in directory of themes > corona > frameworkJune 12, 2013 at 1:03 am #124031
Please download the theme and install wordpress again. I think you accidentally edited something triggering that errors.
IsmaelJune 12, 2013 at 1:39 am #124032
Any good practice that I can do besides straight overwrite of the files to keep the changes I did – ie adding text to page.
Would backing up the PHP/SQL files help so I wouldn’t have to rewrite everything from scratch?
Example of what I got before I remove everything:
– You chose to install in the main directory of the domain digitekdigital.com, but there are conflicting filenames, therefore we can not proceed. Following filenames already exist in the main directory of the domain digitekdigital.com (path=”/home/digitekd/public_html/”).You must manually remove these files before proceeding with auto-installation:
xmlrpc.phpJune 12, 2013 at 3:19 am #124033
Replacing the theme files will not change anything on the front end. The settings, page content, posts and all of that are saved to your wordpress database and not in the theme files.
DevinJune 12, 2013 at 4:35 am #124034
Thanks Guys – Website is up and running again.
Now the big question is if I try and do the crop fix from this post heh.
Just verifying this fix for crop false would be
Themes > Editor > Themes to Edit > Corona > Functions.phpJune 12, 2013 at 4:40 am #124035
Just use this plugin instead if you don’t have access to a code editor to check your code live and give you validation feedback: http://wordpress.org/extend/plugins/simple-image-sizes/
You can use it to set crop settings as well as regenerate your images.June 12, 2013 at 4:47 am #124036
Spoke to soon.
Added in the crop.
now it errors on this
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/digitekd/public_html/wp-content/themes/corona/functions.php on line 33
Overwrote the php to original. Going to try your plugin.June 13, 2013 at 6:05 am #124037
The topic ‘Broke website – functions.php file’ is closed to new replies.