• Hi,

    I’ve installed the latest WP revision manually at my Fedora 35 (LAMP), mostly using these hints:
    https://sysguides.com/install-wordpress-on-fedora/

    I’ve had Apache, PHP and MariaDB installed already as I develop webpages from the scratch, so my local server is quite fine. It is a localhost, no virtual hosts etc – everything for offline web dev is working (obviously with online out connections).

    Now, I’ve installed WP in:
    /var/www/html/<some_webpage>/
    directory, so /wp-admin, /wp-content, /wp-includes etc all are directly there. Installation itself was quick, with no errors.

    My issue is, when I choose “Posts” or “Pages” from left-hand side menu, and click “view” or “preview” in main pane under any of these posts or pages, blank webpage shows up and browser tab reloads it in a loop.
    I’ve tried to investigate which element causes this issue and it looks like it’s a:
    /wp-includes/template-loader.php
    with specific line:
    do_action (‘template_redirect’);

    Because I don’t know anything about WP – it’s why I’ve installed it to learn – I’d like to ask you what might be an issue here ?
    All files/dirctories are recursively 755 with “apache” owner, so that’s not an issue. I’ve got no plugins installed (however elementor installed by curiosity doesn’t want to make preview as well), theme is 22 by default, I’ve got no templates (however Starter Templates plugin will not change anything).

    Any clues, please ?
    Thank you in advance.

    • This topic was modified 3 years, 8 months ago by biuro74.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator threadi

    (@threadi)

    Check in the General Screen if the URLs stored there are correct: https://ww.wp.xz.cn/support/article/settings-general-screen/ – i.e. correct in the sense of accessible within your network.

    Thread Starter biuro74

    (@biuro74)

    Thanks for reply.
    URLs are fine, from what I understand:
    http://localhost/<some_webpage&gt;

    <some_webpage> is one of my webpages which are being kept in their own directories, I’ve put WP installation into it as I’m going to transfer it to WP-style and see how the whole process goes, learning WP on the occassion. Main page was not index.php, so no worries 🙂
    I can’t see any other options which might make WP not working, but I can be wrong.
    As soon as I comment template_redirect line, page shows (but I don’t know if it is being shown fine or not = due to lack of template redirect).

    • This reply was modified 3 years, 8 months ago by biuro74.
    • This reply was modified 3 years, 8 months ago by biuro74.
    Moderator threadi

    (@threadi)

    Stupid question, but do you even have a theme enabled? You should never make changes to any core files. Everything must work without such a thing.

    Thread Starter biuro74

    (@biuro74)

    Yes, standard 20 22, and others (Astra, Hello Elementor) won’t work, too = I mean themes do work, but showing website is not working (preview, or simple viewing in another tab).
    I know it must work without workarounds, but this is the only way to find out where the issue is 🙂

    • This reply was modified 3 years, 7 months ago by biuro74.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Preview/view not working’ is closed to new replies.