CPTags plugin causes error during media upload

  • melissapbr
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #2444 by melissapbr
After uploading a file via Joomla media manager, I get the following error message:
Fatal error: Call to undefined method JObject::getKeyName() in /[path]/plugins/content/cptags/cptags.php on line 98

Is there a way to resolve this error without having to buy the latest version of the plugin (e.g., a quick code change to the cptags.php)?

Plugin version: 3.0.1

Joomla! version: 3.5.1

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

More
7 years 11 months ago #2445 by andrea_4g
Replied by andrea_4g on topic CPTags plugin causes error during media upload
Try changing line 93 from
Code:
if ($isNew)
to
Code:
if ($isNew && is_object($article) && method_exists($article, 'getKeyName'))
The following user(s) said Thank You: melissapbr

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

  • melissapbr
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 11 months ago #2447 by melissapbr
Replied by melissapbr on topic CPTags plugin causes error during media upload
This worked! I am so happy now. Thank you for sharing the code without making me upgrade!

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

Time to create page: 0.159 seconds