Page 1 of 2

Error in phocagallery.php line 909

Posted: 08 Sep 2016, 21:48
by Lowrider614
Hi,

I tried the PhocaGallery Plugin today to Show a Gallery.
I get the following error message:
Warning: Invalid argument supplied for foreach() in /homepages/44/d519870146/htdocs/clickandbuilds/Joomla/Joomla_tb/plugins/content/phocagallery/phocagallery.php on line 909

When I Show an Image only, it works fine.

Any ideas?

Kind regards

Tim

Re: Error in phocagallery.php line 909

Posted: 08 Sep 2016, 22:37
by Benno
Hi,
Which URL?
Which Phoca Gallery version?
Which Phoca Gallery Plugin version ?
Which Joomla! version?

Kind regards,
Benno

Re: Error in phocagallery.php line 909

Posted: 09 Sep 2016, 19:35
by Lowrider614
Hi Benno,

thank you for your Reply.
The URL is http://www.katharina-und-tim.de/index.php/test .
Phoca Gallery Version: 4.3.1
Phoca Gallery Plugin Version: 4.3.1
Phoca Gallery Button Version: 4.2.1
Jommla! Version: 3.6.2

Kind regars

Tim

Re: Error in phocagallery.php line 909

Posted: 09 Sep 2016, 20:21
by christine
Hi Tim,

just an idea: you are running: PHP 5.5.38.
Recommended at least: 5.6, better: PHP 7

Kind regards, Christine

Re: Error in phocagallery.php line 909

Posted: 10 Sep 2016, 17:08
by Lowrider614
Hi Christine,

thanks for that hint. I upgraded PHP to 7.0.
The error is still there.

Kind regards
Tim

Re: Error in phocagallery.php line 909

Posted: 10 Sep 2016, 20:48
by Benno
Hi,
backend --> System --> Konfiguration --> Server --> Server --> Fehler berichten=Standard
Speichern & Schließen
The error is still there.
Warnings sind keine PHP-Fehler, sondern Meldungen an den/die Entwickler von Komponenten.

Freundliche Grüße,
Benno

Re: Error in phocagallery.php line 909

Posted: 11 Sep 2016, 22:22
by Lowrider614
Hallo Benno,

nun in Deutsch:
Die Art und Weise der Fehlerberichterstattung die du angegeben hast, war bereits eingestellt. Ich habe aber das Gefühl, dass das für die Lösung meines Problems auch nicht relevant war. Liege ich da richtig?
Brauchst du einen ausführlicheren Fehlerbericht?

Schöne Grüße

Tim

Re: Error in phocagallery.php line 909

Posted: 11 Sep 2016, 23:40
by Jan
Hi, try to enable debug mode if you get some database error message. The error says, it didn't get any database data.

Which is teh plugin code, you have added to the article?

Jan

Re: Error in phocagallery.php line 909

Posted: 12 Sep 2016, 18:45
by christine
Hi Tim,

probier mal folgendes:

In der angegebenen Plugin Datei, Zeile: 834 steht:

$data_outcome_array = '';

ändern auf:

$data_outcome_array = array();

vorher natürlich die Datei sichern (backup). Mit z.B. Notepad++ ändern.

Liebe Grüße, Christine

Re: Error in phocagallery.php line 909

Posted: 13 Sep 2016, 22:07
by Lowrider614
Hi Christine, hi Jan,

thanks four your replies.
I changed the entry in the .php-File and there is no warning message anymore. But I don't see the Pictures either.
The Code I entred is

Code: Select all

{phocagallery view=categories|imagecategories=1|imagecategoriessize=0|hidecategories=1}
The Website katharina-und-tim.de/test is still online and you can see how it Looks like now.

I enabled debug mode and there are some warnings. Is there a method to copy paste the results in here?

Tim