Page 2 of 2

Re: reCAPTCHA is not shown

Posted: 09 Mar 2018, 17:44
by Jan

Re: reCAPTCHA is not shown

Posted: 10 Mar 2018, 07:58
by RonalddeWaal
Thanks Jan!

Re: reCAPTCHA is not shown

Posted: 11 Mar 2018, 11:40
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

Re: reCAPTCHA is not shown

Posted: 13 Mar 2018, 12:53
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

Re: reCAPTCHA is not shown

Posted: 13 Mar 2018, 16:57
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

Re: reCAPTCHA is not shown

Posted: 18 Mar 2018, 14:17
by Jan
Ok