Keyword

Attachments K2_FILE_DOES_NOT_EXIST

More
11 years 8 months ago #109229 by Jose M.
Replied by Jose M. on topic Re: Attachments K2_FILE_DOES_NOT_EXIST
Sorry,
with the / character only works locally (xampp) by creating the folder in the root c :/ media/k2/attchments
but online not working.

Jose

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

More
11 years 8 months ago #109230 by Jose M.
Replied by Jose M. on topic Re: Attachments K2_FILE_DOES_NOT_EXIST
Now everything is working properly
I modified the file administrator/components/com_k2/models/item.php
to add the path to the directory

line 496
before:
$path = $params->get('attachmentsFolder', NULL);

after:
$path = JPATH_ROOT.DS . $params->get('attachmentsFolder', NULL);

line 1021 :
before:
$path = $params->get('attachmentsFolder', NULL);

after:
$path = JPATH_ROOT.DS . $params->get('attachmentsFolder', NULL);


Jose

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

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #109231 by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Re: Attachments K2_FILE_DOES_NOT_EXIST
Great, thank you, works!

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


Powered by Kunena Forum