I believe I may have fixed my first bit of Drupal here! :)
Referring to a problem I had (reported identically here) with print.module breaking under php5 (solely? not sure... worked ok as is, on a php4 install not long ago)with an open_basedir error, and a blank page upon clicking "print friendly page" on a node, I did a bit (read: ages) of research and found this about urls.
Hence, I changed line 260 of print.module (v4.7.x-1.x, 13/11/06) from:
include_once('print.node.tpl.php');
to:
include_once(drupal_get_path('module', 'print') .'/print.node.tpl.php');
and this seems to work! Hopefully as I test this further it won't break anything...! I am assuming that this will also work fine under php4 - if anyone wants to test that and let me know here, I would be grateful. I would patch this but I haven't got a clue and I'm just leaving work, so don't have time to learn (sorry) - best just get the info up ASAP for some other poor soul, I figure.
Nik
Comments
Comment #1
niklp commentedI've since been informed elsewhere that this is a real bug and should be reported as such, so I'm putting this note on as an addendum and upping it to critical (it does break the site when it occurs!) in the hope it gets fixed. It's only one line!
Comment #2
jcnventuraI am using Drupal 5.x with PHP 5.2.3 and applying the above lines actually break the module. No changes will be performed.
Comment #3
jcnventuraSorry. Actually, I had made an error when trying your suggestion. I will fix this soon.
Comment #4
jcnventuraThis is now fixed in the latest dev release.
Comment #5
jcnventura