RSGallery2 Support Forums

Developers corner => Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened! => Topic started by: Leander Noordermeer on November 30, 2006, 09:17:29 am



Title: [SVN-472] - Problems deleting gallery / uploading files / keep original files
Post by: Leander Noordermeer on November 30, 2006, 09:17:29 am
Last night I installed the Nightly Build 472 but had several problems. I have listed all of my problems below:

1) Problems deleting a gallery: When I try to delete a gallery I recieve this errormessage:

Fatal error: Call to undefined function: sefreltoabs() in /usr/local/www/htdocs/backtor/administrator/components/com_rsgallery2/includes/gallery.class.php on line 192


2) Uploading files by ZIP: When I try to upload files in a zip everything is working fine. But after seeing the content of the zip and when the actual upload (writing in database) sould begin it gives these errors:

Notice: Use of undefined constant JPATH_BASE - assumed 'JPATH_BASE' in /usr/local/www/htdocs/backtor/administrator/components/com_rsgallery2/admin.rsgallery2.php on line 566

Warning: getimagesize() [function.getimagesize]: Unable to access JPATH_BASE/media/Lekker Faut.jpg in /usr/local/www/htdocs/backtor/administrator/components/com_rsgallery2/includes/img.utils.php on line 202

Warning: getimagesize(JPATH_BASE/media/Lekker Faut.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /usr/local/www/htdocs/backtor/administrator/components/com_rsgallery2/includes/img.utils.php on line 202
- Error Image Upload : Lekker Faut.jpg : not an image OR can't read JPATH_BASE/media/Lekker Faut.jpg


3) Keep original files: You can select the option "Keep original files" by the settings. When you select you don't want this, it still puts the files, after uploading completes, in the /images/rsgallery/original folder.


I recieve all the errors at the backend. No problems are visible at the frontend.

Below you will find my config:

* Joomla 1.0.10
* RSGallery2 1.1.11 SVN472
* PHP 4.4.4
* Apache/FreeBSD 5.4

Hope you can help me!  :D


Title: Re: [SVN-472] - Problems deleting gallery / uploading files / keep original file
Post by: Daniel Tulp on November 30, 2006, 05:56:03 pm
it is really weird why hte gallery uses sefreltoabs at the backend, quick fix for now is to change the link not to use sefRelToAbs ()

second is fixed easily:
add
DEFINE("JPATH_BASE", $mosConfig_absolute_path); to the definitions at the top of admin.rsgallery2.php, I'll make this last change in the svn.


Title: Re: [SVN-472] - Problems deleting gallery / uploading files / keep original files
Post by: Leander Noordermeer on December 01, 2006, 07:37:27 am
Ok. So if I understand it, the problems will be fixed in the next SVN?

Could you also explain the problems I quoted as third and are you also informed that the frontend shows "No images in gallery" at all times?


Title: Re: [SVN-472] - Problems deleting gallery / uploading files / keep original files
Post by: Leander Noordermeer on December 05, 2006, 02:16:27 pm
I think the admins are to busy with compiling the new SVN instead of awnsering my qeustions :D No problem. I searched thru the forum myself and find out that the bugs from deleting a gallery and uploading files should be fixed in the latest SVN. Thanks to a friend who have posted the same sort of problems outside the Nightly Builds Feedback :)

Now all of you also know it... So what are you waiting for... go upgrade your version ;D