update from 6.x-1.17 to 6.x-1.18

when running update.php
----------------
The update process was aborted prematurely while running update #6118 in print.module. All errors have been logged. You may need to check the watchdog database table manually.

Fatal error: Call to undefined function json_decode() in /inet/http/pvys-drupal/html/sites/all/modules/print/print.module on line 420
----------------

I think it is because we have php 5.1.6 - json seem to exist from 5.2:
http://www.boutell.com/scripts/jsonwrapper.html

Comments

scalp’s picture

Also having this problem.

jcnventura’s picture

I hate PHP... The solution for D6 will probably involve the use of drupal_to_js().

jcnventura’s picture

Status: Active » Fixed

Actually, it's a lot simpler just change the definition of the constants, and use unserialize() instead.

http://drupalcode.org/project/print.git/commit/a7326a6

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

correction of mistake
update from 6.x-1.18 to 6.x-1.19
->
"update from 6.x-1.17 to 6.x-1.18"