Getting "Call to undefined function" error in CP 3

  • sjkelley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #2697 by sjkelley
I have a website running Custom Properties in conjunction with jDownloads. My site is running:

- Joomla 3.9.4
- PHP 7.2.7
- Custom Properties 3.1.7

...and I am suddenly getting an error message when I try to upload a file into jDownloads. Please see the attached screen grab.
Attachments:

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

More
5 years 1 month ago - 5 years 1 month ago #2698 by andrea_4g
There are 2 possible solutions:

1) update to the latest version of Custom Properties, because your one is more than 4 years old and I can't exclude there won't be other issues with PHP 7.2.

2) fix it in place and see how it goes:

Edit file: plugins/content/cptags/cptags.php

Change line 99 from:
Code:
$content_id = mysql_escape_string($article->$article_id_key);
to:
Code:
$content_id = mysql_real_escape_string($article->$article_id_key);
Last edit: 5 years 1 month ago by andrea_4g.

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

Time to create page: 0.150 seconds