Printing Error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Printing Error

Philipp Nagel

Hello!

 

I am exploring Mapbender3 as a possible mapping portal for our City. I currently have a fresh installation of it following the official installation docs (http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html).

 

When I try to print from the demo map provided, I get error message 500. Everything else seems to work as expected.

 

The Apache error log shows:

 

[Tue Sep 27 08:44:16.783285 2016] [:error] [pid 6381] [client 10.0.0.122:51419] PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in /var/www/mapbender3/vendor/toooni/fpdf/lib/FPDF/src/fpdi_pdf_parser.php on line 245, referer: http://10.0.0.59/application/mapbender_user

 

I am not very experienced with PHP or Symfony apps, so I am not even sure where to start troubleshooting this. Any pointers are appreciated!

 

My setup:

Mapbender  v 3.0.5.3

Apache 2.4.18 from Ubuntu repo

Ubuntu Server 16.04.1 LTS (GNU/Linux 4.4.0-38-generic x86_64)

PHP 7.0.8-0ubuntu0.16.04.2

 

Thank you!

 

Philipp Nagel

GIS Coordinator

 

City of Waseca

508 S. State Street

Waseca, MN 56093

[hidden email]

P. 507-835-9733

 

logo

 


_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Printing Error

Astrid Emde (WhereGroup)
Hello Philipp,

you use Mapbender 3.0.5.3 which is the actual version. In this version
print does not work with the new PHP 7 version.

You could use a nightly build where we fixed this problem with PHP 7
already.
http://mapbender3.org/builds/nightly/

The next version 3.0.5.4 will work with PHP 7.

You can try Mapbender3 at
http://demo.mapbender3.org/

Best regards Astrid


Am 2016-09-27 15:52, schrieb Philipp Nagel:

> Hello!
>
> I am exploring Mapbender3 as a possible mapping portal for our City. I
> currently have a fresh installation of it following the official
> installation docs
> (http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html
> [1]).
>
> When I try to print from the demo map provided, I get error message
> 500. Everything else seems to work as expected.
>
> The Apache error log shows:
>
> [Tue Sep 27 08:44:16.783285 2016] [:error] [pid 6381] [client
> 10.0.0.122:51419] PHP Parse error: syntax error, unexpected 'new'
> (T_NEW) in
> /var/www/mapbender3/vendor/toooni/fpdf/lib/FPDF/src/fpdi_pdf_parser.php
> on line 245, referer: http://10.0.0.59/application/mapbender_user
>
> I am not very experienced with PHP or Symfony apps, so I am not even
> sure where to start troubleshooting this. Any pointers are
> appreciated!
>
> My setup:
>
> Mapbender v 3.0.5.3
>
> Apache 2.4.18 from Ubuntu repo
>
> Ubuntu Server 16.04.1 LTS (GNU/Linux 4.4.0-38-generic x86_64)
>
> PHP 7.0.8-0ubuntu0.16.04.2
>
> Thank you!
>
> Philipp Nagel
>
> GIS Coordinator
>
> City of Waseca
>
> 508 S. State Street
>
> Waseca, MN 56093
>
> [hidden email]
>
> P. 507-835-9733
>
>
>
> Links:
> ------
> [1]
> http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users

--
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

*****************************************************
INTERGEO 2016
11.- 13. Oktober 2016 in Hamburg
Treffen Sie die WhereGroup in Halle A4, Stand B4.028
www.intergeo.de
*****************************************************

  Astrid Emde
  WhereGroup GmbH & Co.KG
  Eifelstraße 7
  53119 Bonn
  Germany

  Fon: +49(0)228 90 90 38 - 22
  Fax: +49(0)228 90 90 38 - 11

  [hidden email]
  www.wheregroup.com

  Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
  pgp-public key:
  http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Printing Error

eSlider
In reply to this post by Philipp Nagel

Hello Philipp,

please try to test printing with PHP 5.6 ?

The last mapbender release isn't jet ready to run with PHP 7.x.

Here how to downgrade the version:
http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04+


Best regards.

Andriy Oblivantsev



On 27.09.2016 15:52, Philipp Nagel wrote:

Hello!

 

I am exploring Mapbender3 as a possible mapping portal for our City. I currently have a fresh installation of it following the official installation docs (http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html).

 

When I try to print from the demo map provided, I get error message 500. Everything else seems to work as expected.

 

The Apache error log shows:

 

[Tue Sep 27 08:44:16.783285 2016] [:error] [pid 6381] [client 10.0.0.122:51419] PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in /var/www/mapbender3/vendor/toooni/fpdf/lib/FPDF/src/fpdi_pdf_parser.php on line 245, referer: http://10.0.0.59/application/mapbender_user

 

I am not very experienced with PHP or Symfony apps, so I am not even sure where to start troubleshooting this. Any pointers are appreciated!

 

My setup:

Mapbender  v 3.0.5.3

Apache 2.4.18 from Ubuntu repo

Ubuntu Server 16.04.1 LTS (GNU/Linux 4.4.0-38-generic x86_64)

PHP 7.0.8-0ubuntu0.16.04.2

 

Thank you!

 

Philipp Nagel

GIS Coordinator

 

City of Waseca

508 S. State Street

Waseca, MN 56093

[hidden email]

P. 507-835-9733

 

logo

 



_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users

-- 

Andriy Oblivantsev

Softwareentwickler

****************************************************
INTERGEO 2016
11.- 13. Oktober 2016 in Hamburg
Treffen Sie die WhereGroup in Halle A4, Stand B4.028
www.intergeo.de
*****************************************************

WhereGroup GmbH & Co. KG
Eifelstraße 7
53119 Bonn
Germany

Fon: +49 (0)228 / 90 90 38 - 41
Fax: +49 (0)228 / 90 90 38 - 11

[hidden email]
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
-----------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
----------------------------------- 

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Printing Error

Astrid Emde (WhereGroup)
Hello Philipp,

downgrading to PHP 5.6 is another possibility.

We did this for OSGeo-Live 10.0 two month ago.

You find the install instruction at:
https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_mapbender3.sh

Astrid

Am 2016-09-28 11:58, schrieb Andriy Oblivantsev:

> Hello Philipp,
>
> please try to test printing with PHP 5.6 ?
>
> The last mapbender release isn't jet ready to run with PHP 7.x.
>
> Here how to downgrade the version:
>
> http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04+
> [6]
>  Best regards.
>
>  Andriy Oblivantsev
>
> On 27.09.2016 15:52, Philipp Nagel wrote:
>
>> Hello!
>>
>> I am exploring Mapbender3 as a possible mapping portal for our City.
>> I currently have a fresh installation of it following the official
>> installation docs
>>
> (http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html
>> [2]).
>>
>> When I try to print from the demo map provided, I get error message
>> 500. Everything else seems to work as expected.
>>
>> The Apache error log shows:
>>
>> [Tue Sep 27 08:44:16.783285 2016] [:error] [pid 6381] [client
>> 10.0.0.122:51419] PHP Parse error: syntax error, unexpected 'new'
>> (T_NEW) in
>>
> /var/www/mapbender3/vendor/toooni/fpdf/lib/FPDF/src/fpdi_pdf_parser.php
>> on line 245, referer: http://10.0.0.59/application/mapbender_user
>> [3]
>>
>> I am not very experienced with PHP or Symfony apps, so I am not even
>> sure where to start troubleshooting this. Any pointers are
>> appreciated!
>>
>> My setup:
>>
>> Mapbender v 3.0.5.3
>>
>> Apache 2.4.18 from Ubuntu repo
>>
>> Ubuntu Server 16.04.1 LTS (GNU/Linux 4.4.0-38-generic x86_64)
>>
>> PHP 7.0.8-0ubuntu0.16.04.2
>>
>> Thank you!
>>
>> Philipp Nagel
>>
>> GIS Coordinator
>>
>> City of Waseca
>>
>> 508 S. State Street
>>
>> Waseca, MN 56093
>>
>> [hidden email]
>>
>> P. 507-835-9733
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users [1]
>
> --
>
> Andriy Oblivantsev
>
> Softwareentwickler
>
> ****************************************************
> INTERGEO 2016
> 11.- 13. Oktober 2016 in Hamburg
> Treffen Sie die WhereGroup in Halle A4, Stand B4.028
> www.intergeo.de [4]
> *****************************************************
>
> WhereGroup GmbH & Co. KG
> Eifelstraße 7
> 53119 Bonn
> Germany
>
> Fon: +49 (0)228 / 90 90 38 - 41
> Fax: +49 (0)228 / 90 90 38 - 11
>
> [hidden email]
> www.wheregroup.com [5]
> Amtsgericht Bonn, HRA 6788
> -----------------------------------
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> -----------------------------------
>
>
>
> Links:
> ------
> [1] http://lists.osgeo.org/mailman/listinfo/mapbender_users
> [2]
> http://doc.mapbender3.org/en/book/installation/installation_ubuntu.html
> [3] http://10.0.0.59/application/mapbender_user
> [4] http://www.intergeo.de
> [5] http://www.wheregroup.com
> [6]
> http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04+
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users

--
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

*****************************************************
INTERGEO 2016
11.- 13. Oktober 2016 in Hamburg
Treffen Sie die WhereGroup in Halle A4, Stand B4.028
www.intergeo.de
*****************************************************

  Astrid Emde
  WhereGroup GmbH & Co.KG
  Eifelstraße 7
  53119 Bonn
  Germany

  Fon: +49(0)228 90 90 38 - 22
  Fax: +49(0)228 90 90 38 - 11

  [hidden email]
  www.wheregroup.com

  Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
  pgp-public key:
  http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Printing Error

Philipp Nagel
I chose to downgrade to PHP 5.6 (which they don't make too easy on Ubuntu 16.04). The script you linked was very helpful.
Printing now works as expected, thank you Astrid and Andriy!

Philipp Nagel
GIS Coordinator
 
City of Waseca
508 S. State Street
Waseca, MN 56093
[hidden email]
P. 507-835-9733



-----Original Message-----
From: Mapbender_users [mailto:[hidden email]] On Behalf Of Astrid Emde
Sent: Wednesday, September 28, 2016 5:08
To: Mapbender User List
Subject: Re: [Mapbender-users] Printing Error

Hello Philipp,

downgrading to PHP 5.6 is another possibility.

We did this for OSGeo-Live 10.0 two month ago.

You find the install instruction at:
https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_mapbender3.sh

Astrid

Am 2016-09-28 11:58, schrieb Andriy Oblivantsev:

> Hello Philipp,
>
> please try to test printing with PHP 5.6 ?
>
> The last mapbender release isn't jet ready to run with PHP 7.x.
>
> Here how to downgrade the version:
>
> http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-t
> o-php-5-6-on-ubuntu-16-04+
> [6]
>  Best regards.
>
>  Andriy Oblivantsev
>
> On 27.09.2016 15:52, Philipp Nagel wrote:
>
>> Hello!
>>
>> I am exploring Mapbender3 as a possible mapping portal for our City.
>> I currently have a fresh installation of it following the official
>> installation docs
>>
> (http://doc.mapbender3.org/en/book/installation/installation_ubuntu.ht
> ml
>> [2]).
>>
>> When I try to print from the demo map provided, I get error message
>> 500. Everything else seems to work as expected.
>>
>> The Apache error log shows:
>>
>> [Tue Sep 27 08:44:16.783285 2016] [:error] [pid 6381] [client
>> 10.0.0.122:51419] PHP Parse error: syntax error, unexpected 'new'
>> (T_NEW) in
>>
> /var/www/mapbender3/vendor/toooni/fpdf/lib/FPDF/src/fpdi_pdf_parser.ph
> p
>> on line 245, referer: http://10.0.0.59/application/mapbender_user
>> [3]
>>
>> I am not very experienced with PHP or Symfony apps, so I am not even
>> sure where to start troubleshooting this. Any pointers are
>> appreciated!
>>
>> My setup:
>>
>> Mapbender v 3.0.5.3
>>
>> Apache 2.4.18 from Ubuntu repo
>>
>> Ubuntu Server 16.04.1 LTS (GNU/Linux 4.4.0-38-generic x86_64)
>>
>> PHP 7.0.8-0ubuntu0.16.04.2
>>
>> Thank you!
>>
>> Philipp Nagel
>>
>> GIS Coordinator
>>
>> City of Waseca
>>
>> 508 S. State Street
>>
>> Waseca, MN 56093
>>
>> [hidden email]
>>
>> P. 507-835-9733
>>
>> _______________________________________________
>> Mapbender_users mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users [1]
>
> --
>
> Andriy Oblivantsev
>
> Softwareentwickler
>
> ****************************************************
> INTERGEO 2016
> 11.- 13. Oktober 2016 in Hamburg
> Treffen Sie die WhereGroup in Halle A4, Stand B4.028 www.intergeo.de
> [4]
> *****************************************************
>
> WhereGroup GmbH & Co. KG
> Eifelstraße 7
> 53119 Bonn
> Germany
>
> Fon: +49 (0)228 / 90 90 38 - 41
> Fax: +49 (0)228 / 90 90 38 - 11
>
> [hidden email]
> www.wheregroup.com [5]
> Amtsgericht Bonn, HRA 6788
> -----------------------------------
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> -----------------------------------
>
>
>
> Links:
> ------
> [1] http://lists.osgeo.org/mailman/listinfo/mapbender_users
> [2]
> http://doc.mapbender3.org/en/book/installation/installation_ubuntu.htm
> l [3] http://10.0.0.59/application/mapbender_user
> [4] http://www.intergeo.de
> [5] http://www.wheregroup.com
> [6]
> http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-t
> o-php-5-6-on-ubuntu-16-04+
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users

--
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

*****************************************************
INTERGEO 2016
11.- 13. Oktober 2016 in Hamburg
Treffen Sie die WhereGroup in Halle A4, Stand B4.028 www.intergeo.de
*****************************************************

  Astrid Emde
  WhereGroup GmbH & Co.KG
  Eifelstraße 7
  53119 Bonn
  Germany

  Fon: +49(0)228 90 90 38 - 22
  Fax: +49(0)228 90 90 38 - 11

  [hidden email]
  www.wheregroup.com

  Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
  pgp-public key:
  http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated _______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users