• Resolved Tim_S

    (@tim_s)


    Hi
    i am fairly new to website design with wp.
    I am using the Twentyfourteen theme and i wanted to modify it. So
    i created a child theme like described here:
    Everything worked fine i added some custom css in my child themes style.css and activated in in the admin panel.

    On the appearance/themes i noticed the following message

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    After some googleing i discovered that i need to include a index.php in my child theme.

    Here everything went wrong.
    From the Twentyfourteen index.php i created one fitting to the child theme but uploaded the wrong one via ftp.

    Now i get the following behaviour.
    My site address is different from my wordpress address but now i cannot access my admin account through
    https://www.siteurl/wp-admin i always have to go through the wordpress address.

    The second, more annoying thing, is a automatic logout from the dashboard when i hit the customize your site button.
    The browser is trying to load

    …/wp-admin/themes.php

    for quite a while but always ends up with the message

    Session expired. Please log in again. You will not move away from this page.

    Could someone explain me what went wrong where and how i can fix this.
    I already tried to deactivate all plugins, but i am almost sure this has nothing to do with add ons.
    Thanks in advance!!

    BTW i am using WP 4.1

    Cheers
    Tim

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    It’s hard to tell what went wrong at this point, I suspect maybe the index.php file you uploaded conflicted with something else. Also, you don’t need an index.php file for a child theme, just a style.css file with an appropriate header: https://codex.www.ads-software.com/Child_Themes#How_to_Create_a_Child_Theme

    As for the issue you’re encountering, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate so you can access your site again and begin to work on fixing the theme.

    Thread Starter Tim_S

    (@tim_s)

    Hi! Thanks for the reply.
    I read that i need a index.php for my child theme here.

    I think i am using the defautl theme. Its twentyfourteen. I switched to the twetyfifteen theme. But i still get this session expired
    message when i try to access

    mysite/wp-admin/customize.php

    I tried to reinstall the twentyfourteen one, but withour success.
    I think this error is not depending on the themes or plugins.
    (I also renamed the plugins folder and created a new empty one)

    I checked the custom.php file. Maybe there wentsomething wrong. But as far as i can tell this one is fine.

    This is not the first time i crash something but now i dont know what went wrong ?? This is the most annoying part. I dont know what i could check. Do you have any more suggestions?

    Cheers
    Tim

    Moderator James Huff

    (@macmanx)

    Do you still have the session expired error when using the Twenty Fifteen theme with no plugin’s active?

    Thread Starter Tim_S

    (@tim_s)

    Yes. Same same.

    Thread Starter Tim_S

    (@tim_s)

    HAH i solved it. I somehow mixed up the
    WordPress Address (URL) Site Address (URL)
    fields. I changed them and now i can login correctly and the dashboard is working as expected!! ?? Thank you for your time!

    Moderator James Huff

    (@macmanx)

    Excellent, thanks for sharing your solution!

    Hi Tim_S,

    I have also the same problem with twentyfourteen. The session was very fast expiring. I’ve read many solutions about session which related to twentyfourteen but there was no answer about this. I don’t want to change other theme that’s I still stuck with the problem. Could I ask you a question ! Your problem had been solved through changing the theme or ..?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Child Theme Development: Session expired. Please log in again.’ is closed to new replies.