reCAPTCHA is not shown

Phoca Guestbook - creating guestbooks in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Thanks Jan!
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Hello Jan,

I get the following error:
Warning: Invalid argument supplied for foreach() in /home/remdewaal/www.remdewaal.nl/components/com_phocagu ... editor.php on line 83
See https://www.remdewaal.nl/teken-het-gastenboek?id=1
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Hi, what happens when you go to plugins - tinymce -> edit -> save. Do you get the same problems?

If this does not help, try to go to:

components\com_phocaguestbook\models\fields\phocaeditor.php line cca 83 and change

FROM:

Code: Select all

foreach ($extraOptionsAll as $set => $val)
			{
				$val->access = empty($val->access) ? array() : $val->access;

				// Check whether User in one of allowed group
				foreach ($val->access as $group)
				{
					if (isset($ugroups[$group]))
					{
						$extraOptions  = $val;
						$toolbarParams = $toolbarParamsAll->$set;
					}
				}
			}
TO:

Code: Select all

if (!empty($extraOptionsAll)) {
				foreach ($extraOptionsAll as $set => $val)
				{
					$val->access = empty($val->access) ? array() : $val->access;

					// Check whether User in one of allowed group
					foreach ($val->access as $group)
					{
						if (isset($ugroups[$group]))
						{
							$extraOptions  = $val;
							$toolbarParams = $toolbarParamsAll->$set;
						}
					}
				}
			}
Please let me know.


Anyway, on your production site, you should disable development warnings in global configuration
Jan
If you find Phoca extensions useful, please support the project
RonalddeWaal
Phoca Member
Phoca Member
Posts: 18
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal »

Hi JAn,
Hi, what happens when you go to plugins - tinymce -> edit -> save. Do you get the same problems?
Saving the plugin solved the problem. Thanks for your quick answer!
With kind regards,
Ronald
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply