Support » How-To and Troubleshooting » Suddenly, I am unable to preview my posts and pages

Suddenly, I am unable to preview my posts and pages

  • 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

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

    Thanks in advance.
    – B.

Viewing 15 replies - 1 through 15 (of 20 total)
  • esmi


    Forum Moderator

    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.

    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



    Forum Moderator

    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.

    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?



    Forum Moderator

    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


    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.

    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.

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



    Forum Moderator

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


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


    Forum Moderator

    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.

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

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



    Forum Moderator

    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?

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

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



    Forum Moderator

    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.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Suddenly, I am unable to preview my posts and pages’ is closed to new replies.