collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Recent Posts

Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]


search.html.php refer to rsgsearch.css with a wrong path by whazzup
[January 13, 2018, 08:12:04 PM]


Slow Gallery with many Photos by whazzup
[September 22, 2017, 09:22:33 AM]

Author Topic: Gallery display problem  (Read 39825 times)

Offline Javi

  • Newbie
  • *
  • Posts: 21
Gallery display problem
« on: February 24, 2007, 02:58:10 PM »
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???? If I delete this file, the gallery runs, but it's a temporally solution, because the problem returns again in.....


Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #1 on: February 24, 2007, 08:09:31 PM »
Javi,

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

Thanks,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #2 on: February 24, 2007, 10:11:41 PM »
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 09, 2007, 01:20:16 AM by Javi »

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #3 on: February 25, 2007, 09:46:19 AM »
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,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #4 on: February 25, 2007, 06:39:01 PM »
I've updated the gallery to the last version and the problem appears again....

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #5 on: February 25, 2007, 07:35:40 PM »
Javi,

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





Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #6 on: February 25, 2007, 08:16:19 PM »
Yes, it's because i've just deleted the display_temp file (three times this afternoon) but the problem is not solved. :-[ :-[ :'(

(sorry for my poor english!) :-[

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #7 on: February 25, 2007, 08:40:04 PM »
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.

Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #8 on: February 25, 2007, 09:15:49 PM »
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  :-[ :-[
« Last Edit: February 25, 2007, 09:22:02 PM by Javi »

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #9 on: February 25, 2007, 09:53:21 PM »
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,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #10 on: February 26, 2007, 05:51:06 PM »
Hi:

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

Could it be a cache problem too? What's the cache directory used by rsgallery???

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #11 on: February 26, 2007, 07:09:36 PM »
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,



Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #12 on: February 26, 2007, 08:25:50 PM »
This is the part of the msg send by my hosting service providers about the first pear error (translated by me  :-\ :-[):

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?? ??? ..... 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!

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #13 on: February 27, 2007, 08:58:22 PM »
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, 09:02:23 PM by Javi »

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #14 on: February 27, 2007, 09:25:52 PM »
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: [Select]
$fh=fopen($file_name_dest,'w');change that to:
Code: [Select]
$fh=fopen($file_name_dest,'wb');
This will force binary mode. Perhaps this will solve your problem.

Let me know if that works.

cheers,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues