* User Info

Welcome, Guest. Please login or register.
Did you miss your activation email?

* 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]

PHP version

  • 2 replies
PHP version
« on: March 15, 2015, 11:36:52 PM »
I started testing the new module on a PHP 5.5 site and it seems to work fine there (can create galleries, upload photo's and display them).
But most of my sites are still on PHP 5.3.27 and a noticed there that you are using the shorthand for array declaration (eg $list[] = [];  on line 550 of administrator/components/com_rsgallery2/includes/file.utils.php). This method isn't supported until PHP 5.4, according to the documentation.
Unfortunately, I'm not at liberty to upgrade my PHP version until our provider deems that opportune  :(
For the time being, I manually changed the occurrences that blocked the extension from running.

Re: PHP version
« Reply #1 on: March 16, 2015, 07:29:58 PM »
php is not native too me yet so i look up these things with google
how should it look like ?
If you are looking for the newest version of  RSGallery2 for Joomla 3 please check out

Re: PHP version
« Reply #2 on: March 17, 2015, 07:41:52 AM »
When an array is declared in the following way

Code: [Select]
$list[] = [];or
Code: [Select]
$array = array(
    "foo" => "bar",
    "bar" => "foo",

instead of
Code: [Select]
$list[] = array()
Code: [Select]
$array = [
    "foo" => "bar",
    "bar" => "foo",