RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 01, 2008, 07:19:41 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Gallery display problem
Advanced search
  « previous next »
Pages 1 2 3 4
Author
Topic: Gallery display problem  (Read 35601 times)
« on: February 24, 2007, 08:58:10 am »
Javi Offline
Newbie
*
Posts: 21



i have a problem: sometimes my gallery don't display the pictures (only an empty box with the description). The only way to fix it is deleting the display_temp.jpg file in /media folder. What can I do?Huh If I delete this file, the gallery runs, but it's a temporally solution, because the problem returns again in.....

Logged
 
Reply #1
« on: February 24, 2007, 02:09:31 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Javi,

Please tell us more about your setup.
Joomla version, PHP version, RSGallery2 version (SVN number)

Thanks,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #2
« on: February 24, 2007, 04:11:41 pm »
Javi Offline
Newbie
*
Posts: 21



Yes. I'm using joomla 1.0.11, php v.5.2.0 and rsgallery2 1.12.1 SVN 550.
Here is an example, the url of one of my pics: ()

Thanks!
« Last Edit: May 08, 2007, 06:20:16 pm by Javi » Logged
 
Reply #3
« on: February 25, 2007, 03:46:19 am »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Javi.

As you still use 1.12.1 at SVN 550, you do not use the latest version.
As we are at 1.12.2 SVN 608 you miss 58 fixes and code adjustments.
I suggest you upgrade first and see if that fixes your problem.

Cheers,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #4
« on: February 25, 2007, 12:39:01 pm »
Javi Offline
Newbie
*
Posts: 21



I've updated the gallery to the last version and the problem appears again....
Logged
 
Reply #5
« on: February 25, 2007, 01:35:40 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Javi,

When I go to the URL now, all is OK in IE7, FF2.0 and Opera.





Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #6
« on: February 25, 2007, 02:16:19 pm »
Javi Offline
Newbie
*
Posts: 21



Yes, it's because i've just deleted the display_temp file (three times this afternoon) but the problem is not solved. Embarrassed Embarrassed Cry

(sorry for my poor english!) Embarrassed
Logged
 
Reply #7
« on: February 25, 2007, 02:40:04 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Javi,

I cannot reproduce your problem, I am sorry.
If I understand you, it does not happen always, but when it does you delete the display_temp.jpg and all is well again.

How did you find out that deleting the display_temp.jpg fixed your problem?

Do you have this in all browsers(IE,FF Opera)?

If there are other users that have this problem, please report in this thread.

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #8
« on: February 25, 2007, 03:15:49 pm »
Javi Offline
Newbie
*
Posts: 21



Yes, it does not happen always, but when it does I delete that file and all works again. I have the same problem in IE6, FF2.0... (Opera... i don't know).

I've just had another problem 10-12 days ago with the gallery, that reported me the next error:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/xxxxx/public_html/administrator/components/com_smf/includes/PEARphp:765) in /home/xxxx/public_html/includes/PEAR/PEAR.php on line 796

and my hosting provider service solved it commenting the line 13 of img.utils.php, changing "require_once(JPATH_ROOT.'/includes/PEAR/PEAR.php');" for "/* require_once(JPATH_ROOT.'/includes/PEAR/PEAR.php'); */"

Could it be the cause of that new problem???

PD: If you click on the url link, you will see that it happened again  Embarrassed Embarrassed
« Last Edit: February 25, 2007, 03:22:02 pm by Javi » Logged
 
Reply #9
« on: February 25, 2007, 03:53:21 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Javi,

It could be as we use the error trapping from the PEAR library.
Where did you receive the other error?

Perhaps you could uncomment the line in img.utils.php again and test it for a period of time to see if that is it.

Good luck,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #10
« on: February 26, 2007, 11:51:06 am »
Javi Offline
Newbie
*
Posts: 21



Hi:

If I uncomment the line in img.utils.php the gallery crashes (totaly unaccesible) displaying the PEAR error. Undecided

Could it be a cache problem too? What's the cache directory used by rsgallery???
Logged
 
Reply #11
« on: February 26, 2007, 01:09:36 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

We don't have a specific RSGallery2 cache, it is handled by Joomla.

I find it strange that the PEAR is causing RSGallery2 to crash. Are you sure the gallery crashes or is it another component/application that crashes.
PEAR has been a part of RSGallery2 for quite some time now and it works OK.

Perhaps you have other components or scripts running that use PEAR in some way.

Also more information about your setup would be welcome.

Cheers,



Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #12
« on: February 26, 2007, 02:25:50 pm »
Javi Offline
Newbie
*
Posts: 21



This is the part of the msg send by my hosting service providers about the first pear error (translated by me  Undecided Embarrassed):

File /home/xxxx/public_html/administrator/components/com_rsgallery2/includes/img.utils.php is including PEAR class deffined in your user directory, and the principal application is including PEAR system class. Two different "ways" to define the same class.

The only component that can create incompatibility with the gallery are SMF forums (PEAR error is not displayed if I uninstall the SMF bridge...) But that forum is the most used in joomla and I think there are a lot of people using SMF and RSgallery without problems. I don't know what's happening, but pear error is over and I think that this new problem has a very simple solution but....what is it? Why deleting display_temp file the pics are displayed again?? Huh ..... I'm really stressed whith that problem, because gallery is really a important section of my website.

If you need more details of my rsgallery config or my component/modules i will post you.

Thanks a lot!
Logged
 
Reply #13
« on: February 27, 2007, 02:58:22 pm »
Javi Offline
Newbie
*
Posts: 21



I've just find another thing:

If you see the properties of the empty white box displayed, you will see that is reporting the next error:

Warning:  fopen(/home/xxxxx/public_html/media/display_temp.jpg) function.fopen: failed toopen stream: Permission denied in /home/xxxxx/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 912
Warning:  fclose(): supplied argument is not a valid stream resource in /home/xxxxx/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 913
Warning:  imagejpeg() function.imagejpeg: Unable to open '/home/xxxxx/public_html/media/display_temp.jpg' for writing: Permission denied in /home/xxxxx/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 914

I think we are close to fix it....

Thanks.
« Last Edit: February 27, 2007, 03:02:23 pm by Javi » Logged
 
Reply #14
« on: February 27, 2007, 03:25:52 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1218

WWW

Ok,

Sounds like something with writing the file.
I have an idea.
Open up img.utils.php and goto line 912.
You will find the following line:
Code:
$fh=fopen($file_name_dest,'w');
change that to:
Code:
$fh=fopen($file_name_dest,'wb');

This will force binary mode. Perhaps this will solve your problem.

Let me know if that works.

cheers,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Print  Pages 1 2 3 4
« previous next »
Jump to: