Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12753 closed enhancement (fixed)

Provide a "php sanity check"

Reported by: lazaridis_com Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.7
Component: DojoX Data Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:

Description

The following demo:

source:tags/release-1.6.0/dojox/data/demos/demo_FileStore_dojotree.html

gives the following information:

"This demo must be run from a web-server with PHP support enabled. Without PHP support, this demo cannot function."

I have php on the server, but the demos access to php returned a "HTTP 500 - Internal Server Error".

After a "fight" with the logs, I detected this:

PHP Fatal error: Call to undefined function json_decode()

My PHP 5.2.6 seems to not have this functionality by default. Happy that yast2 listed php5-json, installed, and it worked.

Sounds simple, but this can be a very frustrating experience.

The demos should possibly provide a "sanity check", to see if:

  • php is available
  • json_decode is available

Or the could a least inform in that way:

"Ensure that you have php (with json library) on the server and that you have the file permissions set correctly."

Change History (3)

comment:1 Changed 9 years ago by Jared Jurkiewicz

Milestone: tbd1.7

comment:2 Changed 9 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [24728]) Updating demo text to denote required PHP packages. fixes #12753

comment:3 Changed 9 years ago by Jared Jurkiewicz

I'm not sure how to do a runtime check to see if PHP is there withput, well, PHP being there that wouldn't end up convoluted, so I added text to the demo files denoting the requirements on json_encode and json_decode

Note: See TracTickets for help on using tickets.