- Posts: 2
- Thank you received: 0
CP Fatal Error When Uploading Images
- lclark
- Topic Author
- Offline
- New Member
Less
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 \xampp\htdocs\plugins\content\cptags\cptags.php on line 98
Any help on resolving this would be appreciated.
Fatal error: Call to undefined method JObject::getKeyName() in \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.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
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:
to
The new version of Custom Properties - that includes this fix - will be released in few days.
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)
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