[resolved] Giving WordPress its own directory: lost access to my admin (16 posts)

  1. Otir
    Posted 2 years ago #

    I am sorry to say, I messed up while I thought I was following instructions carefully from here.
    I got this error message:

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homez.117/terouma/www/wordpress/wp-admin/index.php on line 79

    Now I have an error message

    Your server is running PHP version 4.4.9 but WordPress 3.5.1 requires at least 5.2.4.

    which I never had a minute prior

    If someone generous of their time can help me overcome the mistake I must have made, I would be eternally grateful.



  2. Otir
    Posted 2 years ago #

    if ( current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {

    This is the line it is referring to?

    I am not having a clue about what I did or should have done.

    Thank you for helping!

  3. racer x
    Posted 2 years ago #

    There would not be an error like that in the core files.

    Did you recently upgrade WordPress?
    If so, that message means you need to have your server upgrade their PHP to version 5.2.4. Some hosts allow you to change this in the hosting panel. Others you will need to call to adjust it for you.

    If you need to wait for your hosing you can try going back to your previous version of WordPress.

  4. Otir
    Posted 2 years ago #

    Thanks Racer. It is not giving me the second message error anymore. The issue is that it won't let me log in my admin anymore.

    I have messed up with the redirection apparently as it is not finding my wp-login.php file
    (it keeps redirecting me to the root).

    I am not sure what I did, and what I should do to rectify.
    No file were deleted, and no upgraded was done.

    I followed the instructions of that page http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory thinking I was telling my visitor to visit the site at http://terouma.net (without having to show the /wordpress), but apparently I should not have done that !

    Now the page opens, but has lost the theme, (logical), and I am locked out, silly me!

  5. racer x
    Posted 2 years ago #

    Well, your installation still thinks you are on the root. I assume you moved everything to the /wordpress folder, but did you remember step #3? (Changing the url in the settings panel?)

    If not, you can go into your database and manually change that path in the options table IF you are comfortable doing that.

  6. racer x
    Posted 2 years ago #

    Just wondering if you are aware that you don't need to have wordpress in its own folder? The root level of the website looks like your hosting control panel?

    If you want to be able to send people to your site at http://terouma.net, run 100% by wordpress, then you might want the install on the root rather than in a sub-folder.

    I may not be understanding your full layout though.

  7. Otir
    Posted 2 years ago #

    Thanks so much racer.

    I think I was confused because my wordress installation was already in a folder /wordpress
    and I thought that what I was doing was redirecting to be able to access the website without writing /wordpress after http://terouma.net
    and I may have then thought I made a mistake, and rewritten the full url (that what we dummies usually do: have second thoughts, and do not understand what we are doing).

    If you want to be able to send people to your site at http://terouma.net, run 100% by wordpress, then you might want the install on the root rather than in a sub-folder.

    That is what I thought I was actually doing.

    All the files are in a folder WordPress.

    The page terouma.net/wordpress shows the home webpage, but does not find /wordpress, and can't find http://terouma.net/wp-admin.
    If I enter http://terouma.net/wordpress/wp-login.php I do get a form to login, but it then redirects me to the previous loop http://terouma.net/wp-admin not found page.

  8. Otir
    Posted 2 years ago #

    Do you think I should then restart it all from scratch?

    I don't seem to understand what file needs to be modified and why it is not finding /wordpress anymore.

    This is the index that is at the root:

    > Front to the WordPress application. This file doesn't do anything, but loads
    > wp-blog-header.php which does and tells WordPress to load the theme.
    > @package WordPress

    > Tells WordPress to load the WordPress theme and output it.
    > @var bool
    define('WP_USE_THEMES', true);

    />> Loads the WordPress Environment and Template */

    and the file wp-blog-header.php
    is not in the root but in
    /wordpress folder

  9. racer x
    Posted 2 years ago #

    If you don't have anything really started I would simply start over with all the files on the root.

  10. Otir
    Posted 2 years ago #

    I am not sure I understand what you mean.
    Start over like reinstalling WordPress?
    But it comes in a folder, doesn't it?
    I have a folder WordPress containing all the other folders and several files.

    Do you mean I should take it all off, and re upload a wordpress? It will come in a folder again, won't it? Or do you mean, moving all those files that are not in the sub-folders and put them in the root?

  11. Otir
    Posted 2 years ago #

    So this is what I did and it seemed to have resolved my issue:

    I moved all the contents of the folder /Wordpress to the root of the site and I could access my admin, and I corrected the site address (URL) to match the wordpress address (URL) to be http://terouma.net

    I am still confused as to what I had understood and done wrong in the first place.

    I thank you Racer X very much for all your patience and support and your explaining that I did not need to have the files in the WordPress folder in the first place.

    I am learning!

    Thanks again!

  12. Otir
    Posted 2 years ago #

    (How do I get to have an hyperlink to my handle like everyone seems to have on the forum?)

  13. WPyogi
    Forum Moderator
    Posted 2 years ago #

    That's an unknown "secret" - it happens based on your participation here - just play nice, contribute and don't worry about it :). (Seriously, even the moderators don't know how it works, exactly -- and don't have any control over it.)

  14. Otir
    Posted 2 years ago #

    If it is a perk, then I can live with it.

    Thanks for letting me know!

  15. racer x
    Posted 2 years ago #

    You are welcome! This is a great community!

  16. Otir
    Posted 2 years ago #

    I agree racer x, I feel comfortable already!

Topic Closed

This topic has been closed to new replies.

About this Topic