Can anyone please help.

I am upgrading print module from 6.x-1.x-dev to 6.x-1.18. I get this error:

Fatal error: Call to undefined function json_decode() in ../modules/print/print.module on line 420

I found this post but I don't know what they are talking about.

I am using PHP 5.1.6.

Thank you!

Comments

WorldFallz’s picture

The current dev is newer than 6.x-1.18 so what you are actually attempting is a downgrade and not really a good idea.

EDIT:
Also, always check a module's issue queue. Searching with your error found: #1778204: update problem because of undefined json_decode so it seems that's a bug in that version anyway. just use the dev.

ceci123’s picture

Thank you for the reply.

I don't get it. Drupal says that the "Recommended version: 6.x-1.18 (2012-Sep-04) "
Take a look at Screenshot here.

Any thoughts?

WorldFallz’s picture

yes my thought is that right in your own screenshot, on the bottom line, you'll see the date on the dev version is 2012-Sep-19 (Sep 19 is AFTER Sep 4th).

ceci123’s picture

WorldFallz, that worked!!

After installing the new module I took a look at the .info file and it says "Printer, email and PDF versions 6.x-1.18+3-dev (2012-Sep-19)" which confirms that this is the newest version.

It's weird that Drupal would recommend a version with bugs.

Thanks a bunch.

WorldFallz’s picture

glad you got it sorted! and it's not 'drupal' per say that makes the recommendation-- module maintainers select which version is 'recommended' and therefore it's not always up-to-date.

ceci123’s picture

Good to know. Thank you!