Acute 404 errors from Pelican blog on localhost - pelican

After a few generations of my pelican site, suddenly after changing the theme once my localhost has tries to find all files non-relatively.
WARNING:root:Unable to find file /jonocodes.com/theme/css/main.css/index.html or variations.
I believe it should be looking for my file in /localhost/theme/css/main.css/index.html.
Where is this getting generated? I have not edited my publishconf.py and my page template is the default.
Is there any good reason why it suddenly started messing up after working for a while?

So the issue I was having, and I still can't explain why it happened all of a sudden, was that I had added the field 'SITEURL' to my pyconfig. This made everything relative to the SITEURL and so it did this on local host and of course didn't work.

Related

Apache (wamp) server redirecting to old url

I had a server running WAMP, that served many phpBB forums. The HD went dead in 2010, but recently i was able to recover the whole data.
I put the old installation dir /wamp/ on same path it was before, run wampmanager.exe, server goes up and the website and the forums work fine as they were like in 2010. However, one of them was successful, and that one specifically don't work normally.
The directory structure is:
/AllSites/Foo/
/AllSites/Bar/
/AllSites/GoodSite/
/AllSites/ is an auto-generated apache index, that shows the forum folders (Foo, Bar, GoodSite).
When i navigate to to localhost/AllSites/GoodSite/, i see the browser requesting from http://old.no-ip.url/AllSites/GoodSite, and not from localhost, until it obviously timeouts.
Naturally, i went to GoodSite's phpBB configuration to check if the old.no-ip.url was being set somewhere. Not there, and not via MySQL search for old.no-ip.url string (phpBB actually only asks for /path/, not domain). So i tried to navigate manually to http://localhost/AllSites/GoodSite/index.php and my surprise, entering like that the site works fine and always stay at localhost.
That made me abandon phpBB as the cause of the issue and focus on Apache (i can even remove index.php from /GoodSite/ and it redirects).
Next thing, i went to .htaccess in /AllSites/ and saw Redirect permanent /AllSites/GoodSite http://old.no-ip.url/AllSites/GoodSite. I removed the line, restarted server, refreshed browser cache, but nothing. It always try to go to the old url when navigating to the GoodSite folder.
So i searched for old.no-ip.url in the whole xamp directory (maybe an alias set somewhere) and subdirectories files', for no result (using Notepad++ "Find in Files" option).
So what can be causing this? The only thing that could be redirecting at server level would be apache or maybe php. But there's no such setting, as the Notepad++ search confirmed. Maybe there is something cached? I ran out of solutions. I even tried deleting the .htaccess files.

file does not exist 500.shtml and 404.shtml in joomla internal server error

today i encountered a very weird problem on joomla that is file does not exist 500.shtml and 400.shtml. In my every web page no matter what i am trying to open it is showing me the same error over and over again which turned off my website. I also google out for it and found some suggestions that are turn off your sef in config file of joomla or change your htaccess by putting a # in front of option and close the htaccess file but still it does not helped me. Any help would be appreciated the most.
In general the first step when dealing with this sort of error would be to turn on error reporting by putting the following at the beginning of your index.php:
ini_set('display_errors','On');
error_reporting(E_ALL);
Doing so might give you some php-specific error message with which I will find it easier to trouble shoot the problem.
This would Display the real error , I had a same trouble, and I found that a new template/plugin/module were creating the problem .So I uninstalled/disabled it .And it was working again.
Cheeers

When I change siteurl in wp_options, my local website STILL WORKS. Why?

I'm trying to move a site from Bitnami "localhost" on my computer to a live site online. It's proving very difficult, so I'm trying to understand how this all works.
A very simple question -- the answer to this might offer me some insight:
I've opened the "bitnami_wordpress" database on my computer phpMyAdmin.
I've gone into "wp_options" and changed the siteurl to something other than what it read originally.
It doesn't matter what I've changed it to -- my website on Bitnami localhost should no longer work, right?
Yet the website still works. Why??
Try changing home url in wp_options
If that still doesn't solve the problem, you can find how to migrate wordpress in
http://codex.wordpress.org/Moving_WordPress
I believe the answer to the original question is that the original URL has been cached in the browser. I just ran into the opposite issue: I was still getting a redirect from http://localhost:81/ to http://localhost/ after changing siteurl in SQL table wp_options. Clearing the cache in my browser fixed the issue.

MAMP 2 - Apache. Cannot use folders on desktop

I updated my MAMP to version 2 and ran into a couple of problems. I've always had my projects in a folder /Desktop/Projects and pointed my localhost there. No problem whatsoever, I could see my filelistings etc.
However, after updating, I now get a '403 Forbidden' error, stating that I do not have permission to access '/' on this server.
I'm not sure what I did before to make this work, and I suspect this has something to do with Apache's and/or MAMP's settings? Could someone perhaps give me some pointers? Thanks.
PS: Not sure if this is the right Stackexchange site, but Webmasters didn't have a MAMP tag, so I figured I'd post it here. Thanks a lot.
Guessing you didn't set the Disk Location correctly...
In MAMP, click the HOSTS tab, there you'll see Disk Location.
You can choose the directory here, and click Permissions to make sure things are set correctly.
The path to your web-root should be something like /Users/cabaret/Desktop/Projects

Updating Files on Apache

I'm having trouble with my Apache Web Server. I have a folder (htdocs\images) where I have a number of images already in place. I can browse them and see them on my web server (and access them via HTML). I added a new image in there today, and went to browse to it, and it can't be found. I double and triple checked the path and everything. I even restarted Apache and that didn't seem to help.
I'm really confused as to what's going on here. Anybody have any suggestions?
Thank you.
Edit I just turned on the ability for the images directory to be listed, browsed to it (http://127.0.0.1/images/) and I was able to see all the previous images that were in the folder, but not the new one.
Turn directory indexes on for htdocs\images, remove (or move out of the way) any index.* files, and point your browser at http://yoursite/images/
That should give you a full listing of files in that directory. If the file you're looking for isn't there, then Apache is looking at a different directory than you think it is. You'll have to search your httpd.conf for clues -- DocumentRoot, Alias, AliasMatch, Redirect, RedirectMatch, RewriteRule -- there are probably dozens of apache directives that could be causing the web server to get its documents from somewhere other than where you think it's looking.
make sure the caSE and spelling are 100% correct.
There is not magic in programming (some may disagree:), so look for silly errors. Wrong server? Case of your letters? Wrong extension?
There's a chance it could be due to the cookies stored on your device. I would delete all cookies to the website you're working on before you refresh again