Closed (fixed)
Project:
Shariff Social Media Buttons
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2019 at 15:21 UTC
Updated:
24 Jul 2019 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
crizComment #3
1an commentedComment #4
1an commentedUnable to reproduce the issue. The files are not in a dist/ subdirectory and no errors can be seen.
Comment #5
1an commentedPlease see the proposed patch. Fix of incorrect file_exist checks.
Comment #6
crizThe original patch was working quite okay.
Comment #8
crizSorry, I confused the commit credits here. The commit author should be tricasse and not Ian. Reverted the commit and corrected it, but somehow it is not updated so far.
Comment #9
crizBtw, it shows right on the profile pages: https://www.drupal.org/u/tricasse
Comment #11
Lutfiyeturan commentedI can't understand the patch logic in the patch #5. It has three !file_exists() conditions separated by OR operators.
That means, if one of these doesn't exist the condition will be true and therefore the requirement error is thrown.
And this doesn't make sense - the requirement error still appears although the patch is applied.
The !file_exists() conditions have to be separated by AND operators.
Additionally the file path in the third condition libraries/dist/shariff/shariff.min.js is wrong - should be libraries/shariff/dist/shariff.min.js.
So here is the updated (working) Patch.