Jump to content

Local copy of PW site loads home page but all other pages are missing


Recommended Posts

Hi all - I'm a designer with a little coding experience. My friend, a PW user, forum contributor, developer, passed away in 2020. I've now inherited a number of projects he worked on. I know a beginner level about processwire, but I'm not a server/technical guy. So, my issue is likely so simple, it's not even a problem, but it is to me, in any case.

I grabbed a copy of a live site built a couple years back, and installed it locally in my Mac MAMP dev environment. I managed to reconnect the site to the DB on my local and can visit the local URL and the site loads. However, if I click on any page in the menu I get a "Page not found" error.

When the main page does load, when I turn on debugging, I get this message:

Notice: Trying to access array offset on value of type int in /Applications/MAMP/htdocs/giftfunds/wire/core/PagesLoader.php on line 138

I can find that page, but I don't know what that error means, or if it's an error, or if its related to my problem. That line of code is as follows:

if($selector[0] == '/') $selector = "path=$selector";

A little guidance would be appreciated.

Link to comment
Share on other sites

@creativeguy Usually this behavior indicates that the site is missing an .htaccess file. Check your /Applications/MAMP/htdocs/giftfunds/ directory to make sure there's an .htaccess file in there. I'm guessing there isn't. If you don't have a copy of it, you can get it from here and then rename it to ".htaccess" (with the period in front). 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...