Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View Privacy Policy

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Can't add tags to jDownloads

Can't add tags to jDownloads 5 years 1 week ago #2579

  • EstebanMax
  • EstebanMax's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
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:
The administrator has disabled public write access.

Can't add tags to jDownloads 5 years 1 week ago #2580

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
Please make sure that jDownloads content element connector is enabled:

Extensions > Custom Properties > Utilities > Manage Content Elements Connectors

Install jDownloads and 'Content'
The administrator has disabled public write access.

Can't add tags to jDownloads 5 years 1 week ago #2581

  • EstebanMax
  • EstebanMax's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
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:
The administrator has disabled public write access.

Can't add tags to jDownloads 5 years 1 week ago #2582

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
You unearthed a bug.

Here's a quick fix:

Edit file plugins\content\cptags\cptags.php
Modifiy line 112 from:
$content_id = mysql_escape_string($article->$article_id_key);
to
$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: 5 years 1 week ago by andrea_4g.
The administrator has disabled public write access.

Can't add tags to jDownloads 5 years 1 week ago #2583

  • EstebanMax
  • EstebanMax's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
Hello I made the change but the same issue, in the attachment the change in code
Attachments:
The administrator has disabled public write access.

Can't add tags to jDownloads 5 years 1 week ago #2584

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1122
  • Thank you received: 163
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:
$content_id = mysql_escape_string($article->$article_id_key);
to
$content_id = $db->escape($article->$article_id_key);
Save
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.131 seconds