Basically, my website and Node Gallery works very well, except if I try to Manage Images or Sort Images, there are NO IMAGES.

When managing images that were uploaded, you can NOT sort, OR see, NOR delete these images.

I / you can browse images that you and other uploaded.

Profiles can upload unique images in their personal photo galleries, but no one can see, edit, or delete their images after they are uploaded.

I attached a picture to clarify the issue.

Thank you for your time and consideration.

Juan
a.k.a. Nonnie

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbeall’s picture

Try disabling the devel module and see if the behavior changes.

dbeall’s picture

I am trying to reproduce the error, but no luck so far..
It could have something to do with access modules..
Do you have a web site URL, it might give a clue,, maybe.

dbeall’s picture

I have forgot to bring up the basics of all trouble shooting..
Try setting the site to the garland theme to see if that changes anything..

JohnnyW’s picture

Okay, didn't expect such quick answer LOL

Let me try these things you've mentioned...

Be back in a bit.

THANKS for the input!

Juan

a.k.a. Juan

JohnnyW’s picture

Changed the theme, and the problem persists, but obviously with a different color ;(

I am confident its not the devel module, because this issue started after I migrated to production server.

The original problem I had, was that I couldn't even SEE the picture after they were uploaded, OR the avatars.

The issue was resolved, because of chmod permissions weren't cascading from parent to child folders with WinSCP --> so I changed to Filezilla, and this program DID cascade folder permissions...

BUT now I have this problem when using Node Gallery options of Manage Images and Sort Images...

Attached is a picture to show you Sort Images output too.

PS what was comment #2 specifically referring to?????

Thank you so much for the help!! :?)

dbeall’s picture

from comment #2
*I most always try to reproduce the error on my local install of node_gallery
*some access modules can and will effect imagecache and/or node_gallery
*if i can view the site on the internet, i can try to access the imagecache images with the direct url
such as http://www.example.com/sites/default/files/imagecache/.../.../...jpg

JohnnyW’s picture

FileSize
49.51 KB

Okay, I've checked the error logs and found an error, which is attached to this posting!

I am not sure what it is saying.

This is the error line I get in the log:

Parameter 1 to theme_gallery_sort_images_form() expected to be a reference, value given in /var/www/includes/theme.inc on line 656.

I guess I will have to roll up me sleeves and prepare for war -- to siege the enemies of Drupal -- to damn heaven and deny hell -- I'm out to conquer them both!

Wish me luck, and if you have any awesome suggestions, please feel free to express your ideas.

Thanks again for your time and consideration.

PS do you think this ERROR LOG really means anything?

Juan

a.k.a. Nonnie

dbeall’s picture

The error may very well be the cause. It's very hard to read.
The developer may know the cause or reason for the error from the sort images form.
I have never had this issue with the galleries.. I assume you have the imagecache permissions set for edit and view.

JohnnyW’s picture

Yes, permissions are set for ImageCache and Node Gallery modules, respectfully.

But right now I am Googling / Binging this error.

Wish me luck; I'll update as soon as I have something definitive, or someone asks me something, or gives me advice.

Juan

a.k.a. Nonnie

dbeall’s picture

you need to try to access the imagecache images directly.
This will tell you if image cache is working and the images are viewable over the internet.
Node_gallery may be working just fine, but imagecache might be the problem. They are 2 separate things.

JohnnyW’s picture

FileSize
56.86 KB

Yes, images abide by ImageCache rules, from avatars to cover display, to display -- its just that they don't show in Manage Images or Sort Images.

Please see the picture attached so you understand what I mean.

Juan

a.k.a. Nonnie

dbeall’s picture

Category: support » bug

You may have found a bug in node_gallery. It may be a rare bug, but still, something is up..

JohnnyW’s picture

Don't tell me that!

I no want those honors! YOU -- someone else -- anyone else -- find that bug, BUT BY GOD SON, NOT ME!

I worked on this website for 5 months, 600 man hours -- I am literally on the verge of launching, except this one issue!

From live chat rooms to internal messaging, to mapping your paranormal experience with Google maps, to Shout Outs, from creating your Books of Shadows, to searching members skills and abilities, AND much, much more -- THIS IS THE ONLY BUG ON THE WEBSITE AND I CAN NOT LAUNCH UNTIL IT IS FIXED...ya know?

HELP HELP HELP

ANYTHING?

Anyone?

help

peez

...

:(

dbeall’s picture

I am sorry, I really do wish it would work as normal..
-- you can try to un-install node_gallery and grab a fresh copy, re-install all of it and see if it wakes up.

There are so many variables, it's just hard to 'guess' what might be happening. That is one reason I try to access the site from here to look at the code, check the image URLs and anything else I can see without haveing admin access to the whole backend.

JohnnyW’s picture

Want me to make you a test account, taking the site offline for an hour, while you browse around?

Juan

a.k.a. Nonnie

dbeall’s picture

how about just the URL for the site.. I can try some stuff without an account.

JohnnyW’s picture

Title: Can Not Delete or Sort Images in Node Gallery with php5.3 --->> solved » Can Not Delete or Sort Images in Node Gallery
Status: Closed (fixed) » Active

Sure!!! :)

But first, I found two different log errors -- THE ONLY ERRORS on my website, when I either click on Manage Images or Sort Images, as we've been discussing.

Sort Images Error Log:
Parameter 1 to theme_gallery_sort_images_form() expected to be a reference, value given in /var/www/includes/theme.inc on line 656.

Manage Images Error Log:
Parameter 1 to theme_gallery_sort_images_form() expected to be a reference, value given in /var/www/includes/theme.inc on line 656.

DID YOU SEE THAT? They both point to /includes/theme.inc on line 656 --> What does this maddness means?

Oh yes, the website.

Its www.seattlewaters.com

Its off line right now, until I get this issue fixed.

Juan

a.k.a. Nonnie

PS THANKS FOR YOUR INPUT!!!!!

dbeall’s picture

well, I can't do anything when the site is off-line, because I have to be able to access the galleries.

This may be tied to the node_gallery/theme/theme.inc
@@line 126
@@line 151
function drupal_add_tabledrag

The table drag is used on both of those pages.

I am not a developer, but I believe the table drag is a Drupal javascript
Do you have javascript disabled on your browser..

if the site has to stay off-line send me a login to admin(at)buckeyelake.org
or use my Drupal account contact form

dbeall’s picture

from the API reference it is
drupal_add_js('misc/tabledrag.js', 'core');

which is in Drupals' /misc folder

JohnnyW’s picture

Title: Can Not Delete or Sort Images in Node Gallery » Can Not Delete or Sort Images in Node Gallery --->> FIXED
FileSize
67.82 KB

FIX IT!!!!!!!!!!!!!!

It IS a php 5.3 error!!

-------------------------------------------------------------------------

Look at Comment #8

http://drupal.org/node/694640

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) {

-------------------------------------------------------------------------

THANK YOU SO MUCH FOR ALL THE LOVE AND ATTENTION DBEALL!!!

NOW my website will be launching here on the day after Litha -- Summer Solstice -- oooo, so romantic for such a website :D

Take care!!

Juan

a.k.a. Nonnie

dbeall’s picture

Title: Can Not Delete or Sort Images in Node Gallery --->> FIXED » Can Not Delete or Sort Images in Node Gallery with php5.3 --->> FIXED
Status: Active » Closed (fixed)

Drupal 6 is not compatible with php5.3
You need to change to php5.2.*

This page says it is, but I have had so many problems, all my sites are on 5.2.9

http://drupal.org/requirements

dbeall’s picture

Title: Can Not Delete or Sort Images in Node Gallery with php5.3 --->> FIXED » Can Not Delete or Sort Images in Node Gallery with php5.3 --->> solved
Status: Closed (fixed) » Active

Changed title to solved, so people don't think the module has been patched.
I probably should leave this open as a bug report, in case the developers want to roll this into the module for php5.3. I have no idea what all has to be changed for 5.3 compatibility.

Not sure about the imageapi_gd.module (something out of node_gallery reach -or- control)?
And other family modules possibly effected, node_gallery_access, node_gallery_display, node_gallery_imagex..

JohnnyW’s picture

I have people going to the website now, and its function just fine.

I only found one problem after I launched, but it's not related.

I'll post that problem on another posting.

But in all honesty, it seems to work just find, for me and members :)

Nonnie

a.k.a. Juan

JohnnyW’s picture

Status: Active » Fixed
dbeall’s picture

Status: Fixed » Active

nothing has been fixed or patched in the module.
I am leaving this open so a developer can apply a patch, mark it as won't fix, by design or something else.

JohnnyW’s picture

Understandable.

Juan

a.k.a. Nonnie

dbeall’s picture

well, You found the problem and you solved it.
other people will be using php5.3 in the future and it would be better if this was fixed for them too.

justintime’s picture

Status: Active » Fixed

Just a note that Nonnie reported he was using 2.x-beta2, but couldn't have been, because the fixes he made to his local install were already present in beta2: http://drupalcode.org/viewvc/drupal/contributions/modules/node_gallery/t...

NG2 and NG3 are both PHP5.3 friendly, because my Ubuntu install running 5.3 is what I use to test on :)

For any others coming to this thread, PHP5.3 has made some changes that cause anything from harmless errors to major breakage on a huge amount of contrib modules. Drupal core is 5.3 compatible, as are many other modules, but as of right now, there are still a lot of modules out there that are not 5.3 ready.

NG is 5.3 compatible.

JohnnyW’s picture

Thanks for the info AND the module contribute.

The module is just awesome perfect :)

Juan

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Active » Closed (fixed)