• Resolved appraily

    (@appraily)


    Hi guys !
    Sadly i have to ask for an help…
    I’ve a 4.1.1. WordPress installation and today I’ve messed up everything..
    I was trying to add a feature on woo-commerce by adding a script Hovercard.js.

    I’ve Followed exactly this guide to create a brand new plugin:
    http://designwithpc.com/post/10627942985/use-jquery-plugin-with-wordpress-in-5-easy-steps.

    As the link say I’ve created init.php, this is the content i’ve added to the file:

    <?php
    /*
    Plugin Name: Simple yet sexy Hovercard
    Plugin URI: http://designwithpc.com/post/9639968851/plugin-available-for-simple-and-sexy-hovercard
    Description: Simple yet sexy hovercard with minimum CSS. Like the one used by Twitter.
    Version: 1.0
    Author: PC – Prashant Chaudhary
    Author URI: http://designwithpc.com
    License: Creative Commons Attribution-ShareAlike
    */
    wp_enqueue_script(‘jquery’);
    wp_enqueue_script(‘jquery.hovercard’,WP_PLUGIN_URL.’/Hovercard/jquery.hovercard.js’,array(‘jquery’),’1.0′,1);
    ?>

    The only change I’ve made to the code of the link is changing name of the file hovercard.js to jquery.hovercard.js, because jquery.hovercard.js was actually the name of the file I’ve uploaded…

    Result: [removed, see below] … It loads only the very first lines of my page… I really can’t understand why….

    After that i’ve tried various things:
    Making a copy of the database I’ve tried to repair it with WordPress integrated repair tool.
    I’ve deleted an re uploaded the theme, and WP-includes and WP-admin to refresh WordPress files.
    I’ve tried to repair the database from phpmyadmin.
    I’ve disabled all other Plugins…

    Now i think my database could be corrupted…. I’m not a real super pro in programming and i fear this last part of the init.php file I’ve created: ,array(‘jquery’),’1.0′,1);

    What means this part of code?? Has something to do with the database ?
    What is possible gone wrong ?
    I’m sorry to bother you, but is a brand new site I’m working on the latest week and I’m not the only one involved because my colleagues i this period of time had loaded dozen of contents…
    On Monday i can’t present myself in the office and say … Hi Guys! We are screwed… Lol… In this moment I’m really depressed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    I’m seeing an installation screen there, so I’ve removed the link.

    1. Does your database still have tabled it (access it via phpMyAdmin in your hosting provider’s panel to confirm)?

    2. Is everything in your wp-config.php file, including the table prefix, pointing to the right database and tables?

    3. Do you have a backup from prior to this change?

    Thread Starter appraily

    (@appraily)

    Hey!!
    I’ve just solved my problem…
    Thanks for removing my link i was making some try with the database…
    Now everything is working fine… I’ve solved by installing this plugin:
    WP Options Importer
    I’ve exported a json file with all wp-options and then i’ve re-imported them by choosing witch options to overwrite and witch one to drop…
    I’ve tried few times because there are a lot of options but at least i’ve done it!!!…
    From now on i will work only with scheduled backups…
    Kind regards to every one!!
    Remember BACKUP ALWAYS EVERYTHING !! lol…I’ll go outside now!

    Moderator James Huff

    (@macmanx)

    Excellent, I’m glad it’s fixed now. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘I've Blown Up Everything… :-(’ is closed to new replies.