reCAPTCHA is not shown

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

Re: reCAPTCHA is not shown

Post by Jan » 09 Mar 2018, 17:44

If you find Phoca extensions useful, please support the project


RonalddeWaal
Phoca Member
Phoca Member
Posts: 16
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal » 10 Mar 2018, 07:58

Thanks Jan!

RonalddeWaal
Phoca Member
Phoca Member
Posts: 16
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal » 11 Mar 2018, 11:40

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: 40534
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan » 13 Mar 2018, 12:53

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: 16
Joined: 19 Aug 2013, 20:17

Re: reCAPTCHA is not shown

Post by RonalddeWaal » 13 Mar 2018, 16:57

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: 40534
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reCAPTCHA is not shown

Post by Jan » 18 Mar 2018, 14:17

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

Post Reply