infinitesunrise / carsinbikelanes

A browsable geographic database for crowdsourced traffic violation reporting
GNU General Public License v3.0
64 stars 18 forks source link

new article on site #56

Open alexfrieden opened 7 years ago

alexfrieden commented 7 years ago

Thought you would want to know, made it clear that you had written it and we were working together to get the boston site up.

http://www.bostonglobe.com/metro/2016/11/30/interactive-map-let-cyclists-report-drivers-parked-bike-lanes/j9HYFCS2mUHsypWgckvAfO/story.html

carsinbikelanesboston.com

AdeasTridae commented 7 years ago

Alex - glad to see this happen. Was thinking of setting this up myself.

BTW - since there's no contact info on the boston site, I can't report a bug to you. On both my iPhone and via Chrome I get an error submitting an image. Error message attached. error

Here's the image file in question. fullsizerender

alexfrieden commented 7 years ago

It appears your file is 0 in size. Let me try uploading.

alexfrieden commented 7 years ago

Interesting, appears File name appears to be empty.

[Wed Nov 30 17:54:50.211743 2016] [:error] [pid 22509] [client 199.167.124.185:49868] PHP Warning: getimagesize(): Filename cannot be empty in /var/www/html/submission.php on line 23, referer: http://carsinbikelanesboston.com/index.php?center=42.35,-71&zoom=12 [Wed Nov 30 18:16:32.056487 2016] [:error] [pid 22744] [client 173.252.120.123:15114] PHP Notice: Undefined offset: 1 in /var/www/html/index.php on line 100 [Wed Nov 30 18:18:23.858554 2016] [:error] [pid 22996] [client 170.223.207.86:13116] submission.php - $date_occurrence inbound: 2016-08-04T08:32:00, referer: http://carsinbikelanesboston.com/index.php?center=42.35,-71&zoom=12 [Wed Nov 30 18:18:23.858580 2016] [:error] [pid 22996] [client 170.223.207.86:13116] submission.php - $date_added inbound: 2016-11-30T18:18:23+00:00, referer: http://carsinbikelanesboston.com/index.php?center=42.35,-71&zoom=12 [Wed Nov 30 18:18:23.858597 2016] [:error] [pid 22996] [client 170.223.207.86:13116] PHP Warning: getimagesize(): Filename cannot be empty in /var/www/html/submission.php on line 23, referer: http://carsinbikelanesboston.com/index.php?center=42.35,-71&zoom=12

I'll restart the server and give it a shot.

alexfrieden commented 7 years ago

Still same problem @infinitesunrise any idea why a 2.2 MB file is showing up as 0?

AdeasTridae commented 7 years ago

Mmmm, @alexfrieden - I exported a new picture from my iPhone using the "Medium" option to e-mail it to myself and submit through the website via desktop and that went through - you should see it in the queue to be approved. Here's the smaller file for reference.

fullsizerenderv3

Could it be a file size issue?

alexfrieden commented 7 years ago

Should be approved now. So you needed a smaller file size to successfully submit?

AdeasTridae commented 7 years ago

Yeah - submitting it from site via iPhone (off of my photostream) and desktop Chrome (by e-mailing full res imagine to myself) both raised the same error above. However if I e-mailed the photo and when prompted by my iPhone "You can reduce the file size by scaling the image" selecting the "Medium" option, I could then submit that via desktop Chrome.

infinitesunrise commented 7 years ago

Alex, I bet the post_max_size variable is either not set or set too low in your php.ini. In both my dev environment and web server I've got it set to post_max_size = 100M.

And congratulations on making the Globe! Awesome to see CIBL making waves in more than one city already. It's terrifying how fast it takes off :P

infinitesunrise commented 7 years ago

Sorry, also these two:

upload_max_size = 100M upload_max_filesize = 20M

I'm not sure which of these is the relevant one.