WordPress.org

Ready to get started?Download WordPress

Forums

Suddenly, I am unable to preview my posts and pages (21 posts)

  1. owlsdaughter
    Member
    Posted 3 years ago #

    This is thankfully not an issue in my root directory website, but in a sub-directory site (perhaps this is a clue?).

    All was well for 2 weeks with my new subdirectory site, until suddenly in the last couple of days, I am unable to preview both posts and pages. I get a very unhelpful nearly blank screen that simply says, "You do not have permission to preview drafts."

    I am the ONLY admin, and there was no trouble when I first started it up.
    I am running 3.0.4, the Twenty Ten theme, and the error occurs both on FF 3.6.13 and Safari 5.0.3.

    Searches of the forum have produced inconclusive help, such as clearing all cookies from the cache (so why does it happen on both browsers??). Or not having the ability to give my subdirectory its own name
    (http://wordpress.org/support/topic/you-do-not-have-permission-to-preview-drafts).

    The topic mentioned above has been closed, but I don't see any solutions. Any help?

    Thanks in advance.
    - B.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

  3. owlsdaughter
    Member
    Posted 3 years ago #

    Thanks SO much, esmi. I have now tried deactivating all TWO of my plug-ins... no change.

    To be honest, I am not anxious to change themes (I am on the Twenty Ten theme, 1.1). I had chosen it precisely so I could customize my header and some other things, which I've spent a good deal of time doing. I really don't want to screw that up if I can help it.

    Since I only have the 2 plugins, do you think I should still have to reset the folder by FTP? I am not sure how, but thanks to your link, I'll try if you really think I should..

    Any other ideas are most welcome! It's really frustrating!
    - Beth

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Don't edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

  5. owlsdaughter
    Member
    Posted 3 years ago #

    Ooo, boy.. Now I really am lost. I do apologize for being so clueless.

    So, when I choose a theme, I can't really USE the theme? I have to create a copy of it (somehow, somewhere, with a new name somehow), in order to use its customizing features??? Or else they'll be lost in future upgrades??

    In reading through your links (and the links to the links, etc, etc) I am realizing that yes, themes are much more complicated than just a skin.. But oh dear.

    I have no idea how to create a directory (I need to install a plug-in to do this?), and then write some code (???), and create (or drop .. from somewhere?) a style sheet.. and then migrate everything I already have to the child?? Can I retrofit at all? Do I need to start over from scratch?

    I was really hoping this would be super easy, but evidently it really isn't..

    Thanks for your patience.. Maybe it's not that bad?? I hope?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    So, when I choose a theme, I can't really USE the theme?

    Sorry but I didn't say that. I said don't edit the Twenty Ten theme specifically. It's part of the WordPress core.

    I have no idea how to create a directory

    You can do this using FTP or using the file management application your host provides.

    If you have already made changes to Twenty Ten, I'd suggest that you make a copy of the entire twentyten folder and name the new folder mytheme. Then edit the style.css file in the new folder can change:

    Theme Name: Twenty Ten
    Theme URI: http://wordpress.org/
    Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
    Author: the WordPress team
    Version: 1.1

    to:

    Theme Name: My Theme
    Theme URI: [enter your domain name here]
    Description: Modified Twenty Ten theme
    Author: owlsdaughter
    Version: 1.0

    Then switch to the new theme.

  7. owlsdaughter
    Member
    Posted 3 years ago #

    Oh dear. I almost had it.. I actually could see TWO themes on my dashboard - twenty ten and my renamed version. I even got a good preview that looked like it worked.. But alas!! When I clicked on my new "kindveggietheme," I got:

    Fatal error: Cannot redeclare twentyten_page_menu_args() (previously declared in /home7/owlsdaug/public_html/cookbook/wp-content/themes/kindveggietheme/functions.php:214) in /home7/owlsdaug/public_html/cookbook/wp-content/themes/twentyten/functions.php on line 217

    Now, I can't even get to the Admin login screen.. I only get this error message over and over.. what the heck have I done???

    I am so sorry to bug you, but now I am quite stuck.. I am using BlueHost's C-panel by the way, fwiw.

    - B.

  8. owlsdaughter
    Member
    Posted 3 years ago #

    Oh, no.. now the whole thing is gone, not even as admin, but the site itself. I have totally hosed something.. I have NO idea what I am doing, just trying to cut and paste as suggested by you, and by the how to create a child link..

    I am so sorry for pestering you, I am sure you do not want to hold my hand through this, but I have really screwed something up. :-(

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    I actually could see TWO themes on my dashboard

    Well, we're making good progress.

    I'm a little confused as to why you're getting an error but we can fix this. Edit functions.php in your theme and change:

    function twentyten_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );

    to:

    function mytheme_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'mytheme_page_menu_args' );
  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Do you have FTP access? Can you amend the new theme on your computer and upload the changes? If not, use whatever file management application your host provides and rename wp-content/themes/mytheme to wp-content/themes/mytheme1

    This should reactivate Twenty Ten.

  11. owlsdaughter
    Member
    Posted 3 years ago #

    Oh well, I got the website back but now I've lost all my formatting and now have it running on generic twenty ten. It's a big mess that I will now have to re-create I guess..

    This is so not what I'd wanted to be doing all afternoon today. You, too, I bet..

    But at least something is there.. now I guess on my new renamed version of twentyten, I can rebuild it all from scratch.. just like I really, really didn't want to do at the outset of this conversation.

    But I guess that's the breaks, and maybe it will save me from even more misery whenever there's an upgrade. I am so bummed right now, but thanks for your efforts..
    - B.

    ps: I have FTP, but I would not begin to know how to do this on my computer and then move it over there. I can only half-way understand what I am looking at via Blue Host's C-Panel Code editor. :-(

  12. owlsdaughter
    Member
    Posted 3 years ago #

    What would happen if I restored an autosave from before all this, and then switched to my new theme? Would that work?

  13. esmi
    Forum Moderator
    Posted 3 years ago #

    I've lost all my formatting and now have it running on generic twenty ten

    Did you run an upgrade at all? All of your previous Twenty Ten customisations should still be there...

    Would that work?

    I doubt it. There's something really funky going on with your themes. How many do you have installed?

  14. owlsdaughter
    Member
    Posted 3 years ago #

    ??? For this subdirectory or for my whole WP?

    For my cookbook (which is the thing I am working on), I had twentyten.

    For my main website, I am running Thesis. Would they conflict with each other?

  15. owlsdaughter
    Member
    Posted 3 years ago #

    LOL! And I *still* cannot preview changes! Argh!

  16. esmi
    Forum Moderator
    Posted 3 years ago #

    Would they conflict with each other?

    No. The two installs should be completely independent of one another.

    For what you want to do, I would recommend that you get to grips with using FTP, so that you can edit (and keep copies of) your themes. I's also strongly recommend that you take the time out to look at how to create a child theme. It will make life a lot easier in the long run. Or, alternatively, look at a theme like 2010 Weaver or Suffusion.

    With regard to your original permissions problem, did you upgrade WordPress recently? If so, the fix described in http://wordpress.org/support/topic/sudden-you-do-not-have-sufficient-permissions-to-access-this-page-error might work.

  17. owlsdaughter
    Member
    Posted 3 years ago #

    Okay. I renamed my child again, and switched back to twentyten. Everything is restored as it was, before this little adventure. Yay!

    I believe I did have an upgrade somewhere since I created this (it's only been up since early Dec.).. I did not notice, but maybe that was the trigger for the problem. Will look at the link you've shared when my brain fog has cleared a bit.

    And I will certainly attempt to create a child theme again; I really don't want things blowing up just because there's an upgrade. However, if I use a different theme (maybe, as you suggest, 2010 Weaver or Suffusion), would that pre-empt me having to create a child?

    Thanks SO much, esmi. You really have been incredibly patient and helpful and I really appreciate it!
    - B.

  18. Marvelous Mommy
    Member
    Posted 3 years ago #

    I'm having the same problem. It says "You do not have permission to preview drafts." And I'm also the only Admin.

    I've also noticed under Posts, when you click on Quick Edit and then click Update. I just loads and loads and loads...forever. If you wait long enough the changes will save but it still shows that it is loading.

    Amy @ Marvelous Mommy
    [sig moderated as per the Forum Rules]

  19. esmi
    Forum Moderator
    Posted 3 years ago #

    if I use a different theme (maybe, as you suggest, 2010 Weaver or Suffusion), would that pre-empt me having to create a child?

    Yes. Both of those themes allow customisation through their own interfaces and will protect those customisations if you upgrade the theme. I've not tried 2010 Weaver but Suffusion is extremely powerful with a lot of customisation options. Support is also excellent with a dedicated forum at http://www.aquoid.com/forum

  20. esmi
    Forum Moderator
    Posted 3 years ago #

    @Marvelous Mommy: Please post a new topic.

  21. esmi
    Forum Moderator
    Posted 3 years ago #

    @owlsdaughter: The problems you had with that copy of Twenty Ten have been bugging me. So I carried out exactly the same process on one of my local installs this morning. It worked perfectly.

    Right now, my best guess is that either one of the changes you made to Twenty Ten caused the problem. Or that you may have missed a step during the copying process.

Topic Closed

This topic has been closed to new replies.

About this Topic