Closed (fixed)
Project:
Node import
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 21:28 UTC
Updated:
20 Feb 2009 at 09:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
dman commentedQuite a few more. I've got PHP strict on. It's a pain, but follows best-practice, and helps debugging and testing.
notice: Undefined variable: path in /Library/WebServer/Documents/drupal6/sites/all/modules/modified/node_import/node_import.inc on line 1388.um, etc etc. There's about 2 doz undeclared variables I've encountered at stages in the import. Probably a few left relating to features I've not yet used.
all just adding isset() where needed.
Comment #2
Robrecht Jacques commentedThe second patch is the same as the first.
I'd like to fix E_STRICT errors, but I have problems enabling this. Is adding
in sites/default/settings.php enough? It seems not. Can you tell me how to enable E_STRICT?
Thanks.
First patch committed.
Comment #3
dman commentedSorry, that replacement probably replaced the previous one with the same name (I thought drupal upload was going to add a .0 to it or something) .. No, actually seems I re-uploaded the same one. My bad. (different systems listed my files in a different order) Here's the latest -03 . I guess it may start to conflict with the previous, so... ?
I do dev on a CVS checkout of Drupal core - which has strict on by default.
Non-dev Drupal I think does its own error_reporting override. Not sure of the best way to enable it yourself (without tweaking core) if doing it in settings.php is not enough.
Check your 'system error reporting settings' in the admin settings - you may have to enable it to see it on screen.
Comment #4
Robrecht Jacques commentedCommitted to CVS. I have installed Drupal 6.x-dev instead of Drupal 6.9 and will now see PHP5 strict warnings as well. But if you find some more, keep them coming. Thanks!