|
Title: [FIXED] SVN 459 error found Post by: Ivan Takahashi on November 29, 2007, 07:52:01 pm I install SVN 459, Joomla 1.12, with the semantic template.
I have this error when i open a gallery: Warning: Wrong parameter count for array_slice() in /home/didac3/public_html/ballestaperu/administrator/components/com_rsgallery2/includes/gallery.class.php on line 209 Warning: Invalid argument supplied for foreach() in /home/didac3/public_html/ballestaperu/components/com_rsgallery2/templates/semantic/html/thumbs_table.php on line 10 With macro micro template the component work fine. Title: Re: SVN 459 error found Post by: Jim on November 29, 2007, 08:53:12 pm I have the same problem and with my old template which was based on the semantic template It shows the thumbnails once I enter the gallery but I don't get the error. I do get all the thumbnails though even though I told it to only show 10 thumbnails on each page.
There is definitely something still wrong with the way it is handling the counts see http://rsgallery2.net/component/option,com_smf/Itemid,17/topic,8401.new/topicseen,topicseen Thanks Title: Re: SVN 459 error found Post by: john on November 30, 2007, 04:45:33 am Hello Jim
there was a change in the way the thumbs are enumerated in the template. Please have a look at the current semantic template (html/thumbs_float.php) and update your template according. john Title: Re: SVN 459 error found Post by: Jim on November 30, 2007, 05:57:53 am I will try the new nightly build but the template that came with Wednesday nights build is the one that gave me the errors not my template. My template would atleast show the gallery but the number of thumbnails just wasn't correct.
Title: Re: SVN 459 error found Post by: john on November 30, 2007, 07:42:59 am Hello Jim.
I just wanted to point out what you have to change in your template so it will limit the amount of thumbs it displays. so long john Title: Re: SVN 459 error found Post by: Etienne on November 30, 2007, 04:36:35 pm Hi
I have exactly the same errors as mentioned in the original post: Quote I have this error when i open a gallery: Warning: Wrong parameter count for array_slice() in /home/didac3/public_html/ballestaperu/administrator/components/com_rsgallery2/includes/gallery.class.php on line 209 Warning: Invalid argument supplied for foreach() in /home/didac3/public_html/ballestaperu/components/com_rsgallery2/templates/semantic/html/thumbs_table.php on line 10 Title: Re: SVN 459 error found Post by: john on November 30, 2007, 05:15:36 pm Hello ..
Can anyone provide a site where that error is visible. I can not reproduce it locally. How many thumbs should there be displayed? thanks john Title: Re: SVN 459 error found Post by: Jim on November 30, 2007, 10:33:31 pm Here is a link to my site with the lastest nightly build and the template that comes with the build. I now get an error in the gallery view also but click the easter egg hunt gallery and you will see the error from this post also. To show the gallery showing two many thumbnails I will have to go back to my template since with the semantic template that comes with the nightly build I get this error.
http://www.harvestpointechristianchurch.com/index.php?option=com_rsgallery2&Itemid=47 Thanks, Title: Re: SVN 459 error found Post by: Etienne on December 01, 2007, 03:45:14 am Ok, I looked at Jim's site, the error messages are identical.
I'm on J 1.0.13 with php 4.4.4 and MySql 5.0.27. Btw, these errors persist even with build 462 and in IE, FF and Opera. I've played around with different configs etc with no luck. I have discovered the following, hope it may be a pointer. Scenario 1 - Front page - Display random - No a. Click the main menu item pointing to the gallery component and it displays correctly. b. I see my gallery with its random thumbnail and the sub-galleries list. c. If I click on any of the sub-galleries in the list I get the error. Scenario 2 - Front page - Display random - No a. As above b. As above c. If I click on the random thumbnail in the main gallery it displays a page with all the sub-galleries and their thumbnails, thus correct. d. If I click on any of the sub-galleries I get the error. Scenario 3 - Front page - Display random - Yes a. As above b. As above with random images, correct. c. As per Scenario 2c. d. Clicks as per Scenario 1c and Scenario 2d still leads to errors. e. Click on one of the random images displayed and sub-gallery is entered and image and page displays correctly. f. From there, using the navigation <start> <prev> 1,2... <next> <last> the only navigation that is possible is <start> or 1, ie the first image. Any other navigation button leads to an error, this being a page that displays only the navigation and the description etc tabs. Nothing else, not even the joomla template. In FF I get the warning/error :"A script on this page may be busy etc" Hope that this may help. Title: Re: SVN 459 error found Post by: john on December 01, 2007, 12:48:46 pm Hello
Quote I'm on J 1.0.13 with php 4.4.4 and MySql 5.0.27. Btw, these errors persist even with build 462 and in IE, FF and Opera. That made the difference. array_slice is only supported after PHP5.0.2 the way it is used in RSG. I have added support for PHP4 in SVN 463 thanks for the help. john Title: Re: SVN 459 error found Post by: Etienne on December 01, 2007, 01:45:51 pm Hi John
Thanks for the fix for php4 as that is what my host is providing. Locally I switched to php 5.2 and I'm happy to report that it now works correctly, well almost. The navigation issue still remains. I'm using the semantic template. When I enter the gallery the url for the image I'm viewing look like this (for the purpose of this exercise I'm viewing the 3rd image in a gallery of 6 images) : http://localhost/et/index.php?option=com_rsgallery2&page=inline&id=90 The url for the only other image that I can navigate to, the 1st image in the gallery, looks like this : http://localhost/et/index.php?option=com_rsgallery2&page=inline&gid=9&limit=1 The url's for all other images is in this format, which leads to the error mentioned in my previous post : http://localhost/et/index.php?option=com_rsgallery2&page=inline&gid=9&limit=1&limitstart=1 Quote f. From there, using the navigation <start> <prev> 1,2... <next> <last> the only navigation that is possible is <start> or 1, ie the first image. Any other navigation button leads to an error, this being a page that displays only the navigation and the description etc tabs. Nothing else, not even the joomla template. In FF I get the warning/error :"A script on this page may be busy etc" Title: Re: [PENDING] SVN 459 error found Post by: john on December 03, 2007, 04:57:51 am Hi Etienne
check out SVN465 john Title: Re: [PENDING] SVN 459 error found Post by: Jim on December 03, 2007, 02:05:14 pm Is 465 out yet? I only saw 464 in the nightly builds.
Title: Re: [PENDING] SVN 459 error found Post by: Etienne on December 03, 2007, 04:49:13 pm What Jim said.
Title: Re: [PENDING] SVN 459 error found Post by: john on December 03, 2007, 05:06:21 pm Hello all
svn465 will be available after tonight (nightly build). But i guess you better wait till tomorrow because there was an other bug being solved in svn472 available tomorrow night ... sorry Have fun john Title: Re: [PENDING] SVN 459 error found Post by: Etienne on December 05, 2007, 02:59:48 pm Hi John
Tyvm, the navigation problem seems to be sorted. Don't know if I should post the next in new thread, anyway it seems that I cannot post a comment. Get the following: Quote Comment could not be added! The page you are trying to access does not exist. Please select a page from the main menu. This happens whether the user is logged in or not and irrespective of whether "Allow public user to comment" is set to yes or no. Another thing, the menus in the pathway div disappear when viewing the full image (semantic template), is there a way to make them show, perhaps a setting I'm missing? Also when switching to php 4.4.4 the following error is still with us. Quote Parse error: parse error, unexpected T_OBJECT_OPERATOR in /xxxxxx/xxxxx/xxxxx/components/com_rsgallery2/templates/meta/display.class.php on line 451 thank you Etienne Title: Re: [PENDING] SVN 459 error found Post by: john on December 05, 2007, 03:06:15 pm Hello Etienne
the bugs you mention have been fixed in SVN509, appearing tonight in the nightlies. Having the pathway display in the semantic template is not a bug. But i guess it can be added .. john Title: Re: [FIXED] SVN 459 error found Post by: Etienne on December 05, 2007, 03:23:23 pm Hi John
Thank you, I didn't regard it as a bug. Thought I'm missing something in the config. Unfortunately I got completely lost trying to find where to edit it but I'll give it another bash over the weekend when I have more time available. Thanks again for a good job Etienne Title: Re: [FIXED] SVN 459 error found Post by: john on December 06, 2007, 05:23:15 am Hello Etienne
I think the files you should have a look at is "templates/semantic/html/inline.php" and line 176 of "templates/meta/display.class.php" john Title: Re: [FIXED] SVN 459 error found Post by: Peter Roper on December 07, 2007, 01:18:35 pm I'm still getting this error in SVN 510; I presume there must be some problems with my system? I figured it was a problem with the template, as I've read in other posts, but I get even bigger errors when I try to upload a different template.
Title: Re: [FIXED] SVN 459 error found Post by: Peter Roper on December 10, 2007, 05:56:22 pm Perhaps this is too much of a blanket solution, but all of these errors when away when I upgraded my server to PHP 5.
|