Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #24609

    Was adding in code for cropping of images in portfolio from this thread -

    http://www.kriesi.at/support/topic/post-and-portfolio-images

    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’ );

    #124029

    Hi!

    Hi,

    Corona doesn’t have WPML configuration. Please delete that line. Line 9 should have a code like this

    require_once( 'framework/avia_framework.php' );

    Regards,

    Ismael

    Regards,

    Peter

    #124030

    New error:

    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 > framework

    #124031

    Hi,

    Please download the theme and install wordpress again. I think you accidentally edited something triggering that errors.

    Regards,

    Ismael

    #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:

    wp-admin

    wp-content

    wp-includes

    index.php

    license.txt

    readme.html

    wp-activate.php

    wp-blog-header.php

    wp-comments-post.php

    wp-config-sample.php

    wp-config.php

    wp-cron.php

    wp-links-opml.php

    wp-load.php

    wp-login.php

    wp-mail.php

    wp-settings.php

    wp-signup.php

    wp-trackback.php

    xmlrpc.php

    #124033

    Hi chemicalviper,

    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.

    Regards,

    Devin

    #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.

    http://www.kriesi.at/support/topic/post-and-portfolio-images

    Just verifying this fix for crop false would be

    Themes > Editor > Themes to Edit > Corona > Functions.php

    #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.

    #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.

    #124037

    Hey!

    The simple image sizes plugin works great – just go to the Settings > Media screen and there you can change the thumbnail dimensions.

    Regards,

    Peter

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Broke website – functions.php file’ is closed to new replies.