I have a website on github pages. Two of the images work, but one just doesn't show up. I don't think it's a problem with my code, because if I open it up the local file, it shows perfectly. Has this happened to anyone else, or am I going crazy? I'm sure the website is up-to-date.
Your last commit refers to imgs/coding-large.jpg and imgs/game-large.jpg which do exist and do appear correctly.
But my screen is "min-width: 500px", so that is expected.
The last one https://calebbertrand.github.io/imgs/game.jpg is 404, because your imgs folder include game.JPG.
Case (lowercase vs. uppercase) might not matter locally, at the (potentially case-insensitive) level, but it does when accessed through the web.
Related
I have just encountered an odd problem I'm trying to debug but cannot figure out what is wrong.
I have a wagtail site with images that were all working. At one point I refreshed the browser, and the images suddenly all disappeared from every page.
wagtailimages_tags is there
static is all loaded
the images are all in the correct media directory as specified and have been uploaded through the CMS
if i inspect element, the image is in fact coming through in the code perfectly.
But the site itself just does not show the image. I have checked the CSS and nothing has changed there and it is not hiding the image somehow.
My last resort - I actually started the project over completely in a new environment and added each application one by one to see if I could solve the issue ... nope. No images on the new install from scratch either!
No idea why all the images would suddenly just fail to appear in browser. Just seems super strange to me.
Any ideas on debugging appreciated.
Solved. The path to one of the js files had an extra /js in it and was not loading the file the page needed. The console showed and error and said it could not find /img.url - weird but the file in question where the error was found was the js file with the incorrect path.
This mistake caused every path to load perfectly but strategically blocked a few things globally that a little extra reading of the console would have helped me figure out sooner.
Fixed the .js file path and now all is good.
as of recently I am noticing that the assets folder of my Xaringan presentations fill up with loads of weird folders, after knitting. I have several useful subfolders (e.g., css, images, js), but there are easily 200 folders created after knitting. All of then have random names like "00e3144c-c556-4b66-b50a-c44d64246b85-9.9.9" (the "-.9.9.9" seems the only non-random repetitive part of the folder names).
Where do these folders come from/what causes their appearance? And: are they strictly necessary or can I prevent them from being created? They are empty, but totally flock the assets folder.
I experienced the same overwhelming empty directory problem.
Yihui gave a possible cause - HTML dependency. I went down that route and discovered it was xaringanExtra which uses htmltools that would lead to empty directories - xaringan alone wouldn't.
It seems Garrick (author of xaringanExtra) has been aware of such issue, hence this PR. I'd wait for it to be merged then try again. Hope this is helpful.
I'm trying to clone one fully functioning opencart website to another. The front-end of the website is in Dutch and the back-end I have left English default.
Here are the steps I have taken:
Copy database to new environment
Copy files and edit both the config files(config.php and admin/config.php) to match the server paths.
when i go to test the site, all seems to be working fine, until i go to the admin section where i find this blasted error which seems to be very common:
Notice: Error: Could not load language dutch! in /opt/www/prezent/graviolashop.de/HTML/system/library/language.php on line 39
I'm not sure if this is a path issue or something wrong with the db?
I have googled this issue but none are specific to my perticular case. Has anyone had this issue and resolved it?
Thanks.
If it's unable to load the language and you've copied them over as you say, then this is going to be a config issue. Ensure your path is exactly as it should be. A good way to do this is to create a file such as error.php in your root website folder. Then put some erroneous code in it like
<?php
dfs sdf sd;
Then call the file at www.yoursite.com/error.php, and it will show you the path in the error which you can copy exactly. One other unlikely but possible problem could be permissions, but the former is far more likely
I've been having a sporadic problem for a few weeks where on restarting the CF Server (Enterprise 9) one of my applications runs without ColdFusion referencing all the variables in the Application.cfc file. It's in the same folder as the CFML pages, it IS properly capitalised as Application.cfc, but it seems to just be ignored. Obviously this causes problems with datasource name and all the other variables I set in Application.cfc. For reference, I'm using an Application.cfc file based on Ben Nadel's excellent intro at http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm . Usually my requested template runs as an include and I can see it in the stack using debugging output, now I can't see it there at all. It's as if the file just doesn't exist.
Has anyone else experienced this, or can you think of possible solutions? Note that at times a restart has got the whole thing running perfectly smoothly.
Re folder structure it's really simple: the Application.cfc file is in the web root along with executable CFML templates - included templates, images, CSS etc are in separate folders referenced via relative paths.
There is another application with its own similar Application.cfc file that is in a sub-directory of the web root. This is running perfectly.
Try clearing your template cache. I've see cases where CF just gets flakey and the cached files are causing issues. Another option: Does ColdFusion have permissions to read/execute the Application.cfc? If this WAS an issue but is no longer an issue I've seen cases where the template cache was causing these files not to be found. Again, delete these files (from disk, not the cfadmin) and try again.
WINDOWS XP PROFESSIONAL/coldfusion/Dreamweaver/Fusebox-3
I have the same CF-8 code in two places
* folder A:- c:\Coldfusion8\wwwroot\BootsmanCode\code
* folder B:- c:\wwwroot\BootsmanCode\code
Local:- http://127.0.0.1:8500/BootsmanCode/
http://localhost:8500/BootsmanCode/
ISSUE:- I am making my code changes in "folder B", testing it on http://localhost:8500.
When I go home and use VPN, I cannot see these code changes when I call http://localhost:8500 from folder B
Then when I use http://localhost:8500/, with code from folder A, I am able to see the code changes.
So the URL seems to be magically pointing to different folders at at diffent time.
Any correction to this please let me know?
Would need more detail for a more definitive answer, I'd be happy to take a closer look. But some things I would look at/ask/suggest include:
If you're using IIS, do you have any bindings/host headers that route the request from one folder to another? Following up on VAS's comment (are we talking about a 127.0.0.1 vs. localhost showing different results issue?)
From home, when you VPN... are you accessing http://localhost... from your PC? Or are you remote-desktopping to your PC at work and doing it from there? Localhost is relative to the machine that you're on.
Make sure CF has template caching at 0.
Make sure your browser isn't caching the site.