CP Fatal Error When Uploading Images

  • lclark
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #2154 by lclark
CP Fatal Error When Uploading Images was created by lclark
I installed and set up Custom Properties 3.1.10 on a new Joomla 3.3.6 site. Everything was working fine before, but now whenever I upload an image (either in Media Manager or in an article) I get the following error:

Fatal error: Call to undefined method JObject::getKeyName() in D:\xampp\htdocs\plugins\content\cptags\cptags.php on line 98

Any help on resolving this would be appreciated.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago - 9 years 9 months ago #2155 by andrea_4g
Replied by andrea_4g on topic CP Fatal Error When Uploading Images
I confirm that's a bug.
While we prepare for a new release to solve it, you can fix it by changing a single line of code.

- Edit file plugins\content\cptags\cptags.php
- change line 93 from:
Code:
if ($isNew)
to
Code:
if ($isNew && is_object($article) && method_exists($article, 'getKeyName'))

The new version of Custom Properties - that includes this fix - will be released in few days.
Last edit: 9 years 9 months ago by andrea_4g. Reason: replaced modification with a more reliable one

Please Log in or Create an account to join the conversation.

Time to create page: 0.162 seconds