Notice: Undefined variable: content in (...)\index.php on line 34 #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: paintedsky/dead-simple-blog#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Apache v2.4.33
PHP v7.2.4
I just uploaded the files to my web server, edited the variable "$base_url" in index.php, and loaded the blog on the web browser.
I get the message "Notice: Undefined variable: content in C:\xampp\htdocs\blog\index.php on line 34".
I tried both relative and absolute URLs in the "$base_url"variable and the results were the same.
I also tried to load the available page (2018-10-30.txt) directly using http://127.0.0.1/blog/?post=2018-10-30 and the page loads fine, without errors.
The problem seems to be only in the "home page" of the website.
Hi Alex,
Thanks for making this issue. I suspect the problem has to do with running the app via XAMPP instead of on a "real" web server, but I will investigate this (I have XAMPP on my machine as well, just haven't tried using it for this yet) and let you know what I find. If it's not too onerous to update this so it will work on local environments as well, I'll do so.
Closed as version 1.1 has tested successfully while running XAMPP on localhost.
It's working great.
Thanks!