Y T Nuke  
Results 1 to 6 of 6
Please help I thing I've commuted blogiside, I had set up a simple static site ...
  1. #1
    aamcle is offline Registered Member
    Join Date
    Feb 2010
    Posts
    83
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default killed my wp blog - expert help please....

    Please help I thing I've commuted blogiside, I had set up a simple static site with an Artisteer template and it was looking quite nice.
    But there is a bug in Artisteer that effects the footer making it impossible to make the links to Contact, Terms and so on work, on saving "\\\" slashes are inserted into the target URL and obviously they don't work.
    I found a solution on the Artisteer forum edit the functions file:-

    Code:
       <textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width:100%;height:100px;"><?php
    
                    if( get_settings($value['id']) !== false) {
    
                            echo get_settings($value['id']);
    
                        }else{
    
                            echo $value['std'];
    
                    }?></textarea>
    
      
    
    Change the forth line  
    
    from: echo get_settings($value['id']); 
    to: echo stripslashes(get_settings($value['id'])); 
    
    note: the original line is enclosed by  stripslashes() 
    
       <textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width:100%;height:100px;"><?php
    
                    if( get_settings($value['id']) !== false) {
    
                            echo stripslashes(get_settings($value['id']));
    
                        }else{
    
                            echo $value['std'];
    
                    }?></textarea>
    I did that saved the change and my blog is as dead as a kipper!!!

    I'm hoping that if I FTP in I should be able to manually edit the file back to it's original state.

    I've a couple of questions.

    Where is the functions file located in the WP installation?
    Should this approach work? It's only a small site I have the template so I can re-build in just a few hours.

    Thanks for your help gents.



    aamcle

  2. #2
    ryanisme is offline Newbies
    Join Date
    Apr 2010
    Location
    In my head mostly. Not a nice place.
    Posts
    14
    Reputation
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: killed my wp blog - expert help please....

    I am assuming you edited the file inside of wordpress with the editor. Never do that. Get a FTP program, and get to know the structure of your directory(ies).

    The functions file should be under WP-Content/Themes/your theme

    When you sort out the error, I would suggest using a different theme/template.
    There are so many free ones out there If I try one out that has an issue I just drop it and move on to an new one.
    Last edited by ryanisme; 07-24-2010 at 09:36 PM.

  3. #3
    Barnaby is offline Newbies
    Join Date
    Jul 2009
    Posts
    20
    Reputation
    12
    Thanks
    148
    Thanked 10 Times in 8 Posts

    Default Re: killed my wp blog - expert help please....

    So are you saying you edit the live files on your host server? Do you have the original file saved somewhere on your local computer?

    I know this won't help you much now, but from here forward I would make sure to have a local set of all site files saved. Then anytime you make changes to a file (which I would probably do locally as well, then re-upload), be sure to rename the original to something you'll remember so you'll have it available to you in case of situations like this (something like 'original_functions.php' or '072410_functions.php')

    Good luck restoring your site!

  4. #4
    origin's Avatar
    origin is offline Regular Member
    Join Date
    Nov 2008
    Posts
    327
    Reputation
    19
    Thanks
    42
    Thanked 86 Times in 72 Posts

    Default Re: killed my wp blog - expert help please....

    You can also revert your theme back to a working one via phpMyAdmin, replace theme name in Settings table.

  5. #5
    aamcle is offline Registered Member
    Join Date
    Feb 2010
    Posts
    83
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: killed my wp blog - expert help please....

    I found the file and tried to edit it using plesk but I'm not the owner WP is so I can't save the changes.
    I've had this with another blog I couldn't re-set the permissions even via FTP.

    I'll re-build and call it experience but I'd like to stick with the theme as the result looks just like a static site and in practice I'm using WP as a content management system

    Thanks all aamcle

  6. #6
    aamcle is offline Registered Member
    Join Date
    Feb 2010
    Posts
    83
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: killed my wp blog - expert help please....

    Happy Dayz..........

    I did as suggested and edited the database to use a previous template then deleted and reinstalled the one I want to use.

    I'll be more careful about using the internal editor in future.


    Many Thanks aamcle

AdStract


Advertise on Black Hat World

Similar Threads

  1. Replies: 12
    Last Post: 03-23-2010, 08:22 PM
  2. Need WP blog expert to fix 35 blogs
    By mcgill53 in forum Blogging
    Replies: 6
    Last Post: 12-29-2009, 03:10 PM
  3. Blog Expert Wanted
    By slickski in forum Blogging
    Replies: 11
    Last Post: 02-24-2009, 02:20 PM
  4. Looking for expert blog farmer in Vegas
    By TPO_Hisself in forum Blogging
    Replies: 1
    Last Post: 05-07-2008, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76