• Resolved theblacksheep

    (@theblacksheep)


    hello all,

    i suddenly can’t access my admin panel on my localhost, all was good until i deleted a plugin – “customizable search widget” cuz it wasn’t working. then, i get a blank screen when i go to the wp-admin address locally and on the website, which i can still view locally, all the links double up, so for example, the links are now “https://localhost/mypagetitle/mypagetitle” which means i can’t navigate the site!

    i can get to the admin via wp-login, but then if i want to trash a page or plugin, when i click the trash link, i get a blank page. if i press back on the browser, the item i wanted to trash has been trashed.

    please help.

    thank you so much.

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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 default theme to rule out any theme-related problems?

    resetting the plugins folder by FTP or phpMyAdmin?

    – re-uploading the all files and folders – except the wp-content folder and your wp-config.php file – from a fresh download of WordPress?

    – repairing your database?

    Thread Starter theblacksheep

    (@theblacksheep)

    hello esmi,

    thank you for replying.

    ok, so far this is what i’ve done to try and resolve this issue.

    i deleted the wordpress database via phpmyadmin and and deleted ALL the wordpress files (actually removed the whole directory out of the localhost path).

    i installed wordpress again, from scratch, new database and new files. so far so good. BUT, in order to get somewhere close to where my site was in development, i opened the old wordpress folder (the one that i moved out of the localhost path and replaced with a new installation), and opened the plugins folder. copied all the plugin folders that were working and active at the time to the new fresh plugins directory. went into the admin. saw the plugins listed, but didn’t activate anything.

    next, went into the old wp-content directory > themes. copied ‘mynewtheme’ folder, where the theme i was working on is held, into the new fresh wp-content folder. then, went back to the admin, went to pages and add new. i get to the add new page and type in the title for the new page ‘who we are’ and wait for the yellow permalink structure bit below this box to appear so i can edit the way the permalink is displayed, but it doesn’t appear. so anyway, i click publish and then i get a blank screen AGAIN! i click back and the page ‘who we are’ is in the list. i try to trash it, then blank page! click refresh on the browser, get a message saying ‘error in moving to trash’.

    can you assist me any further?
    i’ve spent two weeks building the site so far and everything was going so well…

    – and point me to how i would repair my database if needed?

    many many thanks.

    s.

    Thread Starter theblacksheep

    (@theblacksheep)

    hello again esmi,

    my theme seems to be the problem – i removed the added plugins and theme folders from the fresh install. switched back to default theme and created a new page – the permalink box appeared and the page published correctly.

    then, i put the old theme folder back in, went to create page, the permalink box DIDN”T appear, instead i get a little light red square under the upload/insert content box.

    how can i determine where the problem is, when the theme was seemingly working fine before?

    if i open all the files in the old theme folder, the php and css, copy the markup and create new files with that, will this resolve something?

    thank you.

    s.

    Try removing the custom theme and just using the default theme initially. Was the new install from a fresh download of WP?

    You can repair your database using PhpMyAdmin.

    Are you running WP locally? If so, are you sure your local server is correctly configured?

    Thread Starter theblacksheep

    (@theblacksheep)

    hi,

    the new install was made by copying all the wordpress files from my online host. it is a fresh install as i haven’t changed anything via the wordpress installation online – just as i did when i first set up the local server. the local server is correctly configured.

    thanks.

    s.

    Try using the files & folders from a fresh download. You need to try and eliminate as many possible factors as you can.

    Hello. I am also experiencing a problem with Permalinks. Have you tried disabling them (setting the option back to “Default”) and using your old template?

    Since I had my issue (displaying ads through a widget, just posted about it), I read a lot about Permalinks, and basically what this function does is change your .htaccess file and include a mod_rewrite tag by which WP is able to modify the appearance of your links (I think it’s a simple redirect command, but I’m not 100% sure).

    Anyway, there are some hosting servers out there that are not compatible with the mod_rewrite tag, and the .htaccess file is a VERY delicate and sensitive file that can generate all sorts of crazy and unexpected issues when it’s not executed right or when it contains tags not supported by the server hosting your domain.

    Hope this helps.

    Thread Starter theblacksheep

    (@theblacksheep)

    thank you for that marventus, but i believe that isn’t the cause of the issue here…

    esmi, i copied the whole of the old theme folder back into the new fresh one and then, i deleted the search.php and searchpage.php files as they were the last files i created before the meltdown. problem remains. so then, i took out the functions.php file too, and went back into the admin. problem gone! put the search.php and searchpage.php files back in and there’s no problem so FUNCTIONS.PHP seems to be the cause. however, the issue now is, why is this happening.

    here is the whole of the functions.php file as it stands:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
        	'after_widget' => '</div>',
            'before_title' => '<div class="title">',
            'after_title' => '</div>',
        ));
    
    ?>
    
    <?php
    function new_excerpt_length($length) {
    	return 30;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    ?>

    the first part i used to enable widgets on the sidebar, the second part i used to add an excerpt to the search results on the search results page.

    any ideas?

    thank you.

    s.

    Try:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
        	'after_widget' => '</div>',
            'before_title' => '<div class="title">',
            'after_title' => '</div>',
        ));
    
    function new_excerpt_length($length) {
    	return 30;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    ?>

    One set of opening and closing PHP tags.

    Thread Starter theblacksheep

    (@theblacksheep)

    i love you all, thank you esmi.

    that seems to have worked, though i can’t understand why it would suddenly stop working as it did before with two sets of php tags.

    much appreciated and thank you for your time, patience and know how.

    now to rebuild the site…

    s.

    Hi BlackSheep,
    I’m really glad you were able to solve your issue and I’m sorry I wasn’t very helpful. Maybe next time, ??
    Take care!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘please help, i suddenly can’t access my admin panel and site links are doubled’ is closed to new replies.