• Resolved devwaleed

    (@devwaleed)


    Hi, I just started wordpress development. I’ll cut to the main point:

    I have a custom home.php file which doesn’t have the wordpress main loop, its almost a static page. I am only loading the banner on that page. I have a header.php

    If I create a page example-page from WP-ADMIN panel it won’t show instead I will get

    OOP the page not found error

    What do I need to do to resolve it?

    I have tried removing the home.php file and the page-example-page.php file. It loaded the default index.php file as expected but still site.com/example-page wont load and show page not found error.

    Where do I need to look to fix this error? Any help please ?? ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • What are your settings for “Your front page” and “Your Blog page” ?
    These settings from “Settings=>Reading”

    Thread Starter devwaleed

    (@devwaleed)

    It is currently set to ‘Your latest posts’

    I have more than 1 page actually.

    /home.php
    /page-sample.php
    /page-someotherpage.php

    If home.php is present, it loads but no other page is working, for example

    /sample will return page not found message. I have also created these pages from the wp-admin panel.

    What about index.php and page.php? Are those present?

    Thread Starter devwaleed

    (@devwaleed)

    Yes they are present and contains the default TwentySixteen code it comes with.

    Okay, do one thing . Install a plugin called debug bar or Query monitor.
    Once that is activated, (and you are logged-in to the site), open the pages that return “nothing found” message.
    Then click on the Debug icon on the top right of the Admin bar, it will show you the template that page is using, and a couple of other stuff too.

    Post the finding here.

    Thread Starter devwaleed

    (@devwaleed)

    Oh wait e,e actually I am working on a site for someone and probably they have nest wordpress installations.

    They website like this:

    example.com/site/ – This works fine and my custom home.php is displayed

    Here I can do this

    example.com/site/wp-admin/ – Shows admin panel for ‘site’ which is probably a nested installation under example.com

    If I do:

    example.com/site/mypage – This won’t load and show me template/layout of the example.com with note found error and no admin bar which probably means the error is generated from example.com installation, right?

    Looks to me this is a WordPress multisite installation.

    In a WordPress multisite installation, the different subsites can have different themes installed. Which means your template could not be in that theme and hence not available for that site.

    If I do:

    example.com/site/mypage – This won’t load and show me template/layout of the example.com with note found error

    This means that the page “mypage” was not created under “site”, it was created on some other subsite instead.

    and no admin bar which probably means the error is generated from example.com installation, right?

    This MIGHT mean you are not logged into example.com; you are just logged into example.com/site. Or that example.com has come plugin similar to “Hide Admin Toolbar” installed

    So you need to check under which subsite you created the page.

    To see the pages on the main site, you need to go to the link:
    example.com/wp-admin/edit.php?post_type=page

    To see the pages on the subsite “site1”, you need to go to the link:
    example.com/site1/wp-admin/edit.php?post_type=page

    To see the pages on the subsite “site2”, you need to go to the link:
    example.com/site2/wp-admin/edit.php?post_type=page

    Thread Starter devwaleed

    (@devwaleed)

    example.com is an old website already build and I have not been provided access to it.

    I have full access to example.com/site1/ WPPANEL/DB

    I created a page from site1, it was working few days ago, I was able to visit

    example.com/site1/page

    I was working on it but probably they installed woocommerce or did something from the main site or site1 and now I can’t access any page under site.

    example.com/site1/page, page2, any page goes to ‘Page not found’ with the template design of the example.com

    How can I resolve this issue? What should I tell them to do for me to work on page2,page3 which are in example.com/site1/ ‘s twentysixteen directory.

    Cant guess much without seeing your site in action.

    Anyways, did you try the Query Monitor or debug bar plugis?

    Thread Starter devwaleed

    (@devwaleed)

    Well, thanks for helping me on this.

    In the end it was an IIS service routing issue, I was informed about this by my client -_- No multisite/wp issue.

    Thanks anyway ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Page wont load’ is closed to new replies.