SOLVED: PHP Notice:Array to string conversion

Phoca Gallery - image gallery extension
pb00067
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Jun 2011, 11:57

SOLVED: PHP Notice:Array to string conversion

Post by pb00067 »

Hi Jan,

I'm not able to connect my PhocaGallery with my facebook account.
always when trying to connect with facebook, after the login (and after having given the access-rights for the facebook-app on my site), following message appears to me:

PHP Notice: Array to string conversion in C:\inetpub\<mysite-path>\administrator\components\com_phocagallery\views\phocagalleryfb\tmpl\edit.php on line 97

The shown request Url in the Browser-navigation is following:
http://<mysite>/administrator/index.php?option=com_phocagallery&view=phocagalleryfb&layout=edit&id=4&session={"session_key"%3A"da44f4d2e266ecab4567a1b1.0-1080387146"%2C"uid"%3A"1080387146"%2C"expires"%3A0%2C"secret"<mysecretnumber>"
access_token"%3A"129857623763824|da44f4d2e266ecab4567a1b1.0-1080387146|5ocPSmDDMntboOYCTeH4gm5HVH0"%2C"sig"%3A"b793cb40b078885b63f4c4f6ef43078f"}

This error supress further building of the page, so I'm not able to connect my PhocaGallery with my facebook account.

com_phocagallery\views\phocagalleryfb\tmpl\edit.php

Code: Select all

		echo '<div style="display:none">';
			echo implode("\n", $div);     // line 97 -->  produces message: PHP Notice: Array to string conversion in ...
			echo '</div>';
Thanks in advance for
Versions: Joomla 1.6.3, PhocaGallery 3.0.0
The server is a Windows2008 machine with PHP Version 5.3.5,
phpinfo:
..
display_errors On
json support enabled
json version 1.2.1
cURL support enabled
cURL Information 7.21.2
Last edited by pb00067 on 27 Jun 2011, 11:59, edited 1 time in total.
pb00067
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 24 Jun 2011, 11:57

Re: PHP Notice:Array to string conversion in edit.php on lin

Post by pb00067 »

PHP value error_reporting in was set to 22527 which includes almost all levels:

E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_RECOVERABLE_ERROR | E_USER_DEPRECATED

No I requested the administrator to set a 'normal' value for error_reporting.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SOLVED: PHP Notice:Array to string conversion

Post by Jan »

Hi, seems error reporting is OK, but there can be the following problem:
PHP Notice: Array to string conversion in C:\inetpub\<mysite-path>\administrator\components\com_phocagallery\views\phocagalleryfb\tmpl\edit.php on line 97
On line 97 try to change:

From:

Code: Select all

echo implode("\n", $div);
To:

Code: Select all

$n = "\n";
echo implode($n, $div);

Maybe this can help
If you find Phoca extensions useful, please support the project
Post Reply