You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I loaded an existing (third party) component and clicked the 'DataDesigner' button. The process reads the sql update files in the component/sql/updates directory. There were about 40 files, about 25% of which were empty files. On reading an empty files, the process terminated with an error message:
File read error.
I made two changes. The first was to update the message to include the name of the offending file and the second to allow empty files to be processed.
I changed helpers/table/helper.php (v0.0.21) lines 95-100 from
if( ! $fContents = JFile::read($file))
{
EcrHtml::message('File read error', 'error');
This looks quite interesting. Any chance you could craft a Pull Request for this? This would also assure that you will receive full credits for your work. Would be awesome 😉
That said, the "Data Designer" is heavy work in progress and sadly I didn't found the time to make it work properly (yet)
Any help would be greatly appreciated.
I loaded an existing (third party) component and clicked the 'DataDesigner' button. The process reads the sql update files in the component/sql/updates directory. There were about 40 files, about 25% of which were empty files. On reading an empty files, the process terminated with an error message:
File read error.
I made two changes. The first was to update the message to include the name of the offending file and the second to allow empty files to be processed.
I changed helpers/table/helper.php (v0.0.21) lines 95-100 from
if( ! $fContents = JFile::read($file))
{
EcrHtml::message('File read error', 'error');
to
$fContents = JFile::read($file);
if( !is_string($fContents))
{
EcrHtml::message('File read error: '.$file, 'error');
The text was updated successfully, but these errors were encountered: