Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#4377 closed defect (fixed)

replace old piecrust

Reported by: robe Owned by: robe
Priority: blocker Milestone: Website Management, Bots
Component: website Version: master
Keywords: Cc:

Description

Well another issue with new debbie.

It appears piecrust 1.2 is not supported anymore and doesn't work with PHP 7.3.

root@debbie:/var/www# sh postgis_website_update-git.sh

Fatal Error: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor

More error details follow:
Fatal Error: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor

More error details follow:
chown: cannot access '_cache': No such file or directory
chown: cannot access '_counter': No such file or directory

So we could move to PieCrust 3.0 which is based on python instead of PHP.

https://bolt80.com/piecrust/en/latest/docs/importing/piecrust1/

I will attempt this and if it doesn't work just try to patch what's broken in the php

Change History (3)

comment:1 by robe, 5 years ago

Resolution: fixed
Status: newclosed

Well upgrading to new PieCrust proved difficult cause it wanted python 3 and kept grabbing on to the python 2.7 and trying to debug Python code scares me more than debugging PHP code.

Trying to get the old to work with PHP 7.3 took me the whole day, but it's done and seems to be working.

We will eventually need to come up with another platform, but no eminent rush at the moment. We might want to go with sphinx since the sphinx libs I had to install to get the workshops building.

comment:2 by komzpa, 5 years ago

In 17678:

Improve GeoJSON SRID handling.

If SRID is not specified, set it to 4326 by default on parsing, following RFC7946.
If SRID is not 4326 on serialization, it will be marked in JSON unless disabled, making round trips almost lossless.

Fixes spatial_ref_sys truncation in all the tests.
Closes #4377
Closes https://github.com/postgis/postgis/pull/455

comment:3 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.