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 39988 times)

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #30 on: March 05, 2007, 11:25:43 AM »
Well,

As you can see, we use require_once(), so that is not the problem.
I really have no idea then.

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

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #31 on: March 05, 2007, 12:50:39 PM »
Javi,

It could be that there is another component you installed, that uses PEAR and didn't use require_once().
What other components do you have installed?

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 #32 on: March 05, 2007, 03:46:25 PM »
Hi.

I only have installed the next components:

-eBackup Repository
-JSMF Bridge from joomlahacks
-RSGallery2  (with RSGallery scroller and RSItems)
-TFSforMambo (statistic component)
-UddeIm (PM Component)

I'm using a lot of modules, but only theese components

cheers

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #33 on: March 07, 2007, 05:05:53 PM »
Frans,

I am pretty sure you are not talking about Javi's problem with the PEAR library here.
Please open up another thread if you have a problem.

Javi,

Your problem has been identified by the com_smf development team. Here is a link to the discussion.

Here's the quote from the Joomlahacks website:
Quote
Preliminary testing shows no problems with removing the copy of PEAR in com_smf.  Javi, remove the file PEAR.php from administrator/components/com_smf/includes/ and it should start working properly for you.

Thanks for the help Ronald!

Good luck trying and let me know!


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 #34 on: March 08, 2007, 09:33:56 AM »
Hi Ronald.

I've deleted the file, and works, but if i uncomment the line of img.utils.php this is what happens:

Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /usr/lib/php/PEAR.php:765) in /home/xxxxx/public_html/includes/PEAR/PEAR.php on line 796

similar, but no the same error. Now it's on /usr/lib/php/PEAR.php

i will post this error in com_smf forums too

Thanks.

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #35 on: March 08, 2007, 10:06:30 AM »
Javi,

This is because now cmo_smf is using the preinstalled version of PHP on your server and not the one provided with Joomla.
In order to make this work, every include and require statement in com_smf needs to be pointing to the one provided in the Joomla core.

A quick solution would be to replace the line in img.utils.php with:
Code: [Select]
require_once("PEAR.php");
This way it will also use the preinstalled PEAR.php from your server configuration. This is not the preferred wy for RSGallery2 however because not all servers provide a standard PEAR library. Therefor the ideal solution would be if every JOomla component uses the PEAR library privded by Joomla.

Let me know if the quick solution works for you. I will get in touch with Joomlahacks about this.

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 #36 on: March 08, 2007, 07:38:12 PM »
Hi Ronald,

I've tried it, and seems to work ;). Now, com_smf and rsgallery are using my server preinstalled version of PEAR, and the most "logical" solution is that both components pointed to /includes/PEAR/PEAR.php, isn't it??

If both components pointed to /includes/PEAR/PEAR.php, then I could let the line 13 of img.utils like in a fresh installation (require_once(JPATH_ROOT.'/includes/PEAR/PEAR.php');
isn't it??

I'm waiting to the Wolverine reply to tell me what line i must change in com_smf to point to this PEAR file...

PD: It's been really hard for me to explain all this things in english!!! :'( :'(


« Last Edit: March 08, 2007, 09:13:43 PM by Javi »

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Gallery display problem
« Reply #37 on: March 08, 2007, 10:08:35 PM »
Javi,

You are doing great man!


Quote
If both components pointed to /includes/PEAR/PEAR.php, then I could let the line 13 of img.utils like in a fresh installation (require_once(JPATH_ROOT.'/includes/PEAR/PEAR.php');
isn't it??

Yes that is correct. If com_smf is adapted, the normal settings in img.utils.php can be used again. FOr now, you're fine.
I will check with wolverine about that. It would be best if he adapted com_smf to use the Joomla PEAR library, so no conflicts will appear.

Good luck!

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

Offline Javi

  • Newbie
  • *
  • Posts: 21
Re: Gallery display problem
« Reply #38 on: March 09, 2007, 08:56:15 AM »
 Hi!

There is no upload problems now! and gallery is still working OK.
I'll come back here frecuently (and to joomlahacks forum), to verify if wolverine includes the joomla pear library in his component.

Thousands of thanks to you and Daniel!!! ...and I hope this could help anyone with the same problem.

Thanks again, man!  ;)
« Last Edit: March 09, 2007, 09:17:12 AM by Javi »

Offline Jed

  • Newbie
  • *
  • Posts: 2
Re: Gallery display problem
« Reply #39 on: May 26, 2007, 05:03:47 AM »
I have the exact same problem as above (and due to the same reasons0

This problem is present in the latest release of RSGallery.

The problem I have is trying to apply this modification to img.utils.php doesn't work with the latest version because its not present (the require) in the latest img.utils.php file.

I've had to choose the last version of the gallery to get this to work.

Can you suggest what to do to fix this so I can use the latest version?

Thanks,

J.

Offline Jed

  • Newbie
  • *
  • Posts: 2
Re: Gallery display problem
« Reply #40 on: May 31, 2007, 10:07:39 PM »
Anyone?  ???

Offline R. de Vroede

  • Newbie
  • *
  • Posts: 8
    • Ardor House
Re: Gallery display problem
« Reply #41 on: June 01, 2007, 10:08:23 AM »
Disclaimers:
  • Since I'm not using com_smf, this is just an educated guess..
  • You did not mention the exact version number you're using, so I'm assuming it's 1.13.1

There is a require_once for PEAR.php in file.utils.php in the same directory. It's possible that the require_once got moved there. Try uncommenting it there.

Offline Lady Benjamin

  • Newbie
  • *
  • Posts: 2
Re: Gallery display problem
« Reply #42 on: September 07, 2007, 05:32:25 AM »
Hello,
I am new to this forum.  i followed the directions in this thread as I am having the same problem since I moved my site over to a different server.  So I downloaded the img.utils.php file and made the follwoing change:


A quick solution would be to replace the line in img.utils.php with:
Code: [Select]
require_once("PEAR.php");

Only problem is that I can not reupload the img.utils.php file after i have changed it.  I am using fetch and i can upload and download to every directory of my site except for this one.  Every time I try to i get a message saying:
Quote
Server responded: "img.utils.php" : Permission denied

This feels like such a novice question, but I can't for the life on me get this to work.  Any suggestions would be greatly appreciated.

Lady

Offline Jonathan

  • Retired from Dev Team
  • Jr. Member
  • ****
  • Posts: 70
Re: Gallery display problem
« Reply #43 on: September 07, 2007, 06:09:29 AM »
you do not have permission to edit the file. because it is owned by apache.  The easiest thing to do is change the group of the file to a group that you are in, if you have the ability to, must have sudo todo so or ask your server admin, although It may even be more easy to install JoomXplorer and edit the file through that components interface.

Good Luck

Offline Lady Benjamin

  • Newbie
  • *
  • Posts: 2
Re: Gallery display problem
« Reply #44 on: September 07, 2007, 03:43:18 PM »
Thank you very much for your reply.  This site is on a dedicated server which I have root access to.  So is there a way for me to modify the file through the root?

Thanks,
Lady