Hello.
I'm running D6.15 on xampp with PHP 5.3.1.
When I try to upload images through upload form, it does(files appear at corresponding folder), but general image properties form renders completly crushed (please, see attached screenshot).

In a scope of this 2 errors appear:

Parameter 1 to theme_gallery_edit_images_form() expected to be a reference, value given in file D:\xampp\htdocs\includes\theme.inc at line 617.
Parameter 1 to theme_gallery_sort_images_form() expected to be a reference, value given in file D:\xampp\htdocs\includes\theme.inc at line 617.

I installed jquery form update, then tried to remove &'s as usual recommended for PHP 5.3,x but nothing changed in both cases.

Please, advice.

CommentFileSizeAuthor
#3 Photo Gallery.png43 KBdbeall
error.jpg98.67 KBdhtml2

Comments

dbeall’s picture

Drupal 6.15 is suppose to run on php 5.3*.
http://drupal.org/requirements

They are still working on it:
http://drupal.org/node/360605#comment-2496240

Grab a lesser version of php and you should be fine, php 5.2* works ok

EDIT: I don't see any error in your screen shot, all looks normal, the 'title' is the file name or 'image file name'. The layout is off, I was thinking you might have customized it...

dhtml2’s picture

"Title" is ok, 'coz I have russian translation, but look for hanging radio button and other elements -- it's not normal, isn't it? Nothing else were customized, it is clearly installed module.

dbeall’s picture

StatusFileSize
new43 KB

here is a capture from my test site, I would say this is normal. I edited the .jpg from the image titles

jimthunderbird’s picture

I used LAMPP (http://www.apachefriends.org/en/xampp.html) in my Fedora Core 12 development box. I have LAMPP 1.7.3 installed with PHP 5.3.1, Drupal does not like it. So I did the following trick:

1. I download LAMPP 1.7.1 which comes with PHP 5.2.9, put it at /opt/lampp_1.7.1
2. I keep LAMPP 1.7.3 in /opt/lampp_1.7.3
3. I then create a php shell script called lampp_start, when I do drupal development, I do lampp_start 1.7.1, so drupal is running smoothly.
For other projects I work on PHP 5.3, I then do lampp_start 1.7.3

Bellow is my lampp_start script:

#!/usr/bin/php
<?php
/**
 * This script will try to start different versions of lampp
 * Usage: lampp_start [version number] 
 * Example: lampp_start 1.7.1
 */
if($argc > 1){
  $lampp_path = "/opt/lampp_".$argv[1];
	if(!@file_exists($lampp_path)){
		print "Can not find the corresponding lampp bundle.\n";
	}
	else{
    shell_exec("lampp stop");
		shell_exec("rm -f /opt/lampp");
	  shell_exec("ln -s $lampp_path /opt/lampp");
		shell_exec("lampp start");
    print "Lampp ".$argv[1]." has started\n";
	}
}
else{
	print "Please provide the lampp version number.\n";
}
dbeall’s picture

Change title to better describe issue.
change priority as this is a Drupal issue as well and nothing is really critical on a localhost install..

well, I had the exact same problem with 1.7.3 and had to hunt down 1.7.1.. I think I had to get it from sourceforge.
http://sourceforge.net/projects/xampp/files/

jimthunderbird’s picture

Title: PHP errors at Image edit form load (Drupal 6.15, PHP 5.3.1) » PHP errors at Image edit form load on xampp 1.7.3(Drupal 6.15, PHP 5.3.1)
Priority: Critical » Minor
dbeall’s picture

@jimthunderbird, I wish I knew all the stuff you know.. servers still get the best of me. I have a box here just to play with and I have learned some stuff, but it's a slow process.

bmarcotte’s picture

Hi All,
Nice module.
I was having this issue, I easily fixed it by removing the & in the errant function calls.
node_gallery/theme/theme.inc required 2 repairs:
Line 125 became: function theme_gallery_edit_images_form($form) {
Line 150 became: function theme_gallery_sort_images_form($form) {

Additionally, I made a change to imageapi_gd.module
Line 123 became: function imageapi_gd_image_resize($image, $width, $height) {

I do not know if this breaks php 5.2 but it got me up and running.

Bob

justintime’s picture

Status: Active » Closed (duplicate)

We are now PHP 5.3 compatible, marking as dupe of #834214: Can Not Delete or Sort Images in Node Gallery