1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HELP!! Any wordpress experts?

Discussion in 'Blogging' started by weBay, Apr 17, 2011.

  1. weBay

    weBay Senior Member

    Joined:
    Oct 12, 2010
    Messages:
    808
    Likes Received:
    283
    Occupation:
    Hotel owner / Internet Marketer
    Location:
    koh samui, thailand
    NOOOOOOOOOOOOOO!!!!!!!!!!!

    I messed around with the functions PHP of my wordpress theme using the instrucitons here:

    http://geekeemedia.com/wordpress/add-a-custom-url-to-your-wordpress-gallery-images/

    now I just get this error message

    Fatal error: Cannot redeclare gallery_shortcode() (previously declared in etc etc

    I cant use my blog or do anything!

    Can anyone help?? I would appreciate it SO much!!

    AHHHHH!!!!!!!!!

    weBay
     
  2. trigger_my_passion

    trigger_my_passion Junior Member

    Joined:
    Oct 2, 2008
    Messages:
    108
    Likes Received:
    483
    Use a FTP client or your host's cPanel file manager to replace the code in functions.php with original one.
     
    • Thanks Thanks x 1
  3. cjbmeb14

    cjbmeb14 Regular Member

    Joined:
    Jul 17, 2008
    Messages:
    228
    Likes Received:
    276
    Occupation:
    Self Employed
    Location:
    Worcester,UK
    If you have downloaded your theme to your computer just re-up the functions.php with your ftp client.
     
    • Thanks Thanks x 1
  4. DebtFreeMe

    DebtFreeMe Regular Member

    Joined:
    Mar 14, 2010
    Messages:
    418
    Likes Received:
    363
    Occupation:
    Military
    Location:
    Earth
    That's about it, just re upload the Function.php of the theme. In the meantime you could simply put up a different theme until you get that one restored.
     
    • Thanks Thanks x 1
  5. weBay

    weBay Senior Member

    Joined:
    Oct 12, 2010
    Messages:
    808
    Likes Received:
    283
    Occupation:
    Hotel owner / Internet Marketer
    Location:
    koh samui, thailand
    sorted now PHEEEEEW!

    thought that was 3 days work down the pan.

    note to self: backup everything!
     
  6. devil_disaster

    devil_disaster Newbie

    Joined:
    Apr 10, 2011
    Messages:
    27
    Likes Received:
    9
    Always test on a test domain (could be a sub-domain) before applying any changes on your real website.
     
  7. shevkorn

    shevkorn Newbie

    Joined:
    Nov 26, 2010
    Messages:
    18
    Likes Received:
    1
    made a rollback is not the best way sometimes, especially when something has been modified.

    Fatal error: Cannot redeclare gallery_shortcode() (previously declared in etc etc

    if you got another error like that, just see the "etc etc" section and you will see where are these functions being called in both files, then, comment or delete it in one of them.

    xD!