Closed (fixed)
Project:
Node Images
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2007 at 12:09 UTC
Updated:
15 Jan 2008 at 18:24 UTC
Problem:
admin/settings/node-image produces blank page. No errors are generated (checked with different page; no messages);
node/x/images same problem
Server: php5, apache2.2, linux Fedora Code 4, drupal 5.1
Bug traced to function _node_images_mkdir_recursive
Erronous function call on line 798 (line 5 inside function definition):
if (!file_check_directory(implode("/", $dirs), $mode, $form_item)) {
drupal 5.1 function file_check_directory: first parameter is a pointer. You can't point to the result of a function (appearantly)
Solution: put function result in a variable first;
$dir = implode("/", $dirs);
if (!file_check_directory($dir, $mode, $form_item)) {
pseudo-patch:
@798
- if (!file_check_directory(implode("/", $dirs), $mode, $form_item)) {
+ $dir = implode("/", $dirs);
+ if (!file_check_directory($dir, $mode, $form_item)) {
Comments
Comment #1
rmpel commentedForgot to add; the version this is based on is the 1.9 version of the module.
Comment #2
stefano73 commentedComment #3
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.