Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

HTTP ERROR 500 #126

Open
webstations opened this issue Apr 5, 2018 · 5 comments
Open

HTTP ERROR 500 #126

webstations opened this issue Apr 5, 2018 · 5 comments

Comments

@webstations
Copy link

I have a 66 .mbtile file.
of the 66 files I uploaded to the server, many of which can not open with HTTP ERROR 500 error messages.
for example can be opened address https: ///maps.ptsljakbar.com/{number 1 to 66}/

error messages obtained from the wrong log are as follows:
(sample from https: ///maps.ptsljakbar.com/13/)

[05-Apr-2018 13:39:42 UTC] PHP Fatal error: Uncaught Error: Call to a member function fetchAll() on boolean in /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php:189
Stack trace:
#0 /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php(104): Server->metadataFromMbtiles('JELAMBAR_BARU.m...')
#1 /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php(537): Server->setDatasets()
#2 /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php(1285): Server->getHtml()
#3 /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php(18): Router::serve(Array)
#4 {main}
thrown in /home/bpnjakba/maps.ptsljakbar.com/13/tileserver.php on line 189

can you help me, why this error happened

@daliborjanak
Copy link
Collaborator

Have you got PHP SQLite module instaled? Which version PHP are you running?

@webstations
Copy link
Author

webstations commented Apr 5, 2018

yes, i have PHP SQLite installed, as you can see in https://maps.ptsljakbar.com/1/ or https://maps.ptsljakbar.com/4/ as a running sample, and https://maps.ptsljakbar.com/2/ or https://maps.ptsljakbar.com/3/ as an error page sample
running on PHP 5.6 ver

@daliborjanak
Copy link
Collaborator

My mistake. So PHP and tileserver are OK. It might be a wrongly copied or broken files or some collision with rewrites. You have tileserver also on https://maps.ptsljakbar.com/. And if there is an htaccess there it might handle some URL to this root which cannot find the file.

@webstations
Copy link
Author

I convert the all shp file into mbtiles using tilemill, i tried to recreate the mbfiles which not opened (as sample at https: ///maps.ptsljakbar.com/13/ ) and upload again to server, but still failed to open (error 500).

i tried delete .htaccress file and tileserver file on root and still not work.

@webstations
Copy link
Author

samplembtiles.zip

i attach sample mbtiles that work ang not work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants