BFD Calendar Posted January 16, 2019 Share Posted January 16, 2019 Just celebrated the creation of my 25000th page on the first website www.birthfactdeathcalendar.net I made with ProcessWire, about five years ago. 25000 pages means over 17000 individual public pages and a few thousand as selectlists (cities, states, countries, occupations,....). All of this would never have been possible with the great support of members here. Thank you all! And the lucky winner is Sabine Pass, Texas, United States, where Jiles Perry Richardson aka The Big Bopper was born on 24 October 1930. 12 Link to comment Share on other sites More sharing options...
wbmnfktr Posted January 16, 2019 Share Posted January 16, 2019 While looking around I saw that your Google Maps aren't fully functional. Console tells me: Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 16, 2019 Author Share Posted January 16, 2019 54 minutes ago, wbmnfktr said: While looking around I saw that your Google Maps aren't fully functional. Console tells me: Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys Well I'm wrestling with this already for some time and just gave up for a while. I have an api key in the module configuration, I have billing enabled, my credit card is valid,.... no idea what's missing where. Link to comment Share on other sites More sharing options...
wbmnfktr Posted January 16, 2019 Share Posted January 16, 2019 <!-- your version now --> <script type='text/javascript' src='https://maps.googleapis.com/maps/api/js'></script> <!-- try this instead --> <script src="https://maps.googleapis.com/maps/api/js?key=YOURAPIKEYHERE"></script> Ok... please try this. That's how it works on my projects. Link to comment Share on other sites More sharing options...
BFD Calendar Posted January 16, 2019 Author Share Posted January 16, 2019 I tried it before and it didn't work. Just now made a new api key and set it everywhere and it seems to work. Of course now anybody can get your api key.... I did restrict the usage in credentials but still. Link to comment Share on other sites More sharing options...
wbmnfktr Posted January 17, 2019 Share Posted January 17, 2019 Limiting usage for your domain should be absolutely ok. I always limit it to the full domain and it works fine. I don't know anything about your traffic but you should have an eye and usage statistics. Last month a project of mine almost hit the limits. Link to comment Share on other sites More sharing options...
dragan Posted July 20, 2019 Share Posted July 20, 2019 @BFD Calendar It's certainly none of my business, but don't you want to optimize your site a bit? For starters, it takes ages to load. It's also not responsive. Your homepage is a whopping 24MB. You're loading JS in the <head> instead of the end of your <body> etc. The pattern backgrounds makes reading content hard. Images don't have an alt attribute. Google doesn't like slow and non-mobile-friendly sites, and chances are, your users won't either. https://search.google.com/test/mobile-friendly?id=Os-IXOq4pmJaFuqLUSb8xQ https://developers.google.com/speed/pagespeed/insights/?hl=de&url=https%3A%2F%2Fwww.birthfactdeathcalendar.net%2F The long homepage e.g. could make use of some lazy loading technique - it ain't that hard to do. I don't know what else is slowing down the site (TTFB is over 7 seconds, which is really bad)... maybe un-optimized PW selectors? Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 @dragan Only read your post now... Sure I'd want to optimise my site a bit. It's the first one I made with Processwire so I can imagine a lot of my coding is sluggish and outdone, also pieced together from different sources. Where should I start? Knowing that I'm more of an enthusiast and not an experienced coder. Just now I have a sudden 500 Internal Server error and can't even get on the site anymore.... Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 5, 2019 Share Posted September 5, 2019 Maybe you will find something in the logs /site/assets/logs. Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 8 minutes ago, wbmnfktr said: Maybe you will find something in the logs /site/assets/logs. The most recent items are 2019-09-05 12:21:59 guest https://www.birthfactdeathcalendar.net/rss/ Error: Uncaught Error: Call to a member function getRandom() on null in /home/birthfac/www/site/templates/bfd_rss_feed.php:174 Stack trace: #0 /home/birthfac/www/wire/core/TemplateFile.php(287): require() #1 /home/birthfac/www/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #2 /home/birthfac/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array) #3 /home/birthfac/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #4 /home/birthfac/www/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #5 /home/birthfac/www/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #6 /home/birthfac/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___renderPage', Array) #7 /home/birthfac/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #8 /home/birthfac/www/wire/core/WireHooks.php(822): Pr (line 174 of /home/birthfac/www/site/templates/bfd_rss_feed.php) and 2019-09-05 12:32:09 ? https://www.birthfactdeathcalendar.net/?/ Error: Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (in /home/birthfac/www/wire/core/WireSaveableItems.php line 168) Yesterday evening everything was working fine. Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 5, 2019 Share Posted September 5, 2019 Your database doesn't respond (in time) aka is down. Saw this quite often in uncached projects on cheap hosting plans. Why? Maybe too many open sessions or a too many requests in very short period of time. Look into /site/assets/sessions. If that folder if full with files it might be the cause of this issue. Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 Can't even see if it's full: Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing But my FTP program says it was only modified on 07/02/15. /site/assets/files was modified 09/04/19 but then I didn't add any files, just pages last night. And getting the listing fails as well. Last cached file is LazyCron.cache 09/05/19 13:02:54 But Hurray! site is back now – without doing anything at all :) Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 5, 2019 Share Posted September 5, 2019 You might want to consider Cloudflare as a CDN and kind of protection layer for your site. They block spammy requests, cache what's possible and can give some control over what's happening. But please read through the GDPR things before. Maybe it's time to clean up the site a bit in order to have a much smaller footprint in terms of server connections, memory usage and page sizes. What kind of hosting is this? Are they reliable? Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 The hosting is by OVH. I have five sites there, two with a lot of pages and three 'simple'. In the last year they moved servers to new locations which caused a few problems but apart from that I'm satisfied. At birthfactdeathcalendar.net all images apart from a few exceptions are linked to other sites like Wikipedia and such. This probably makes pages load slow as well. And the code used to make the a-z listings for 'people' and 'places' are maybe loading a lot that isn't used. As mentioned some of the resources are copy paste and definitely not optimised for Processwire. Any help or direction to improve things is most welcomed. The site is still growing, I'm close to 29.000 pages now, means that I added about 4.000 in eight months time.... Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 5, 2019 Share Posted September 5, 2019 25 minutes ago, BFD Calendar said: hosting is by OVH Don't know anything about them - at least I can't remember it. 25 minutes ago, BFD Calendar said: apart from a few exceptions are linked to other sites like Wikipedia That's far from best practice - I would try another solution here. 26 minutes ago, BFD Calendar said: Any help or direction to improve things is most welcomed Sure... would be nice to tinker with it but it's hard to tell what to do first without any insight. Is there a repository or profile export I could checkout or even install locally? Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 Great. I can give you a login and you can export what's needed. Link to comment Share on other sites More sharing options...
wbmnfktr Posted September 5, 2019 Share Posted September 5, 2019 If you have Site Profile Exporter installed I'd create an export next weekend. Link to comment Share on other sites More sharing options...
BFD Calendar Posted September 5, 2019 Author Share Posted September 5, 2019 I'll install it and pm you when done. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now