Can't add tags to jDownloads

  • EstebanMax
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #2579 by EstebanMax
Can't add tags to jDownloads was created by EstebanMax
Hello I bought the extension as I need it to add properties to jDownloads items.
However after installation (with the installation package) I can't see the "CP tags" button in the items' content editor.

Thanks
Stefano
Attachments:

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

More
7 years 3 months ago #2580 by andrea_4g
Replied by andrea_4g on topic Can't add tags to jDownloads
Please make sure that jDownloads content element connector is enabled:

Extensions > Custom Properties > Utilities > Manage Content Elements Connectors

Install jDownloads and 'Content'

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

  • EstebanMax
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #2581 by EstebanMax
Replied by EstebanMax on topic Can't add tags to jDownloads
Ok thank you.
I have another issue however. After installing Custom properties and save a new property, I get the error message (see also attachment):

0 Call to undefined function mysql_escape_string()

and this also occurs also if I try to create new content in other places (jDownloads, Articles, etc).
The content itself is created, but first I have that error.

That occurred only after installation of the component and If I uninstall it the administration works fine.
Attachments:

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

More
7 years 3 months ago - 7 years 3 months ago #2582 by andrea_4g
Replied by andrea_4g on topic Can't add tags to jDownloads
You unearthed a bug.

Here's a quick fix:

Edit file plugins\content\cptags\cptags.php
Modifiy line 112 from:
Code:
$content_id = mysql_escape_string($article->$article_id_key);
to
Code:
$content_id = mysql_real_escape_string($article->$article_id_key);
Save

That should do the trick.

Please give us some feedback (we'll then release an updated version of Custom Properties).
Last edit: 7 years 3 months ago by andrea_4g.

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

  • EstebanMax
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #2583 by EstebanMax
Replied by EstebanMax on topic Can't add tags to jDownloads
Hello I made the change but the same issue, in the attachment the change in code
Attachments:

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

More
7 years 3 months ago #2584 by andrea_4g
Replied by andrea_4g on topic Can't add tags to jDownloads
Here's a modified (and more elegant) fix that should definitely work.

Edit file plugins\content\cptags\cptags.php
Modifiy the very same 112 line from:
Code:
$content_id = mysql_escape_string($article->$article_id_key);
to
Code:
$content_id = $db->escape($article->$article_id_key);
Save

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

Time to create page: 0.179 seconds