When creating a new code entry in the jphpx component I get the following error: fread(): Argument #2 ($length) must be greater than 0
This happens when I try to save the entry.
This is happening on two different sites on two different hosting servers.
I have installed the latest jphpx package via component update:
Jphpx Applications - v 220.127.116.11
jphpx Package - v 18.104.22.168
jphpx Plugin = v 22.214.171.124
WebServer to PHP Interfacefpm-fcgi
Joomla! VersionJoomla! 4.2.8 Stable [ Uaminifu ] 16-February-2023 15:00 GMT
Please advise how to fix this error.
I have been doing some testing on localhost around this and can confirm that this error occurs when one tries to save a new code entry but the php script does not exist in the directory or is named differently. An error is then generated informing the user that the script does not exist. After that if one tries to create a new script then the above error occurs.
Last edit: 3 weeks 1 day ago by Red Ant. Reason: Added info
this is an user error, which I did not expect to happen! You will get this error, if your script to be defined does exist but is empty (has no content).
The next build I will check for this and will inform the user about this problem.