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
{{ message }}
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
In one of my projects, it seems that the pageFilenameFromPath() sometimes gets an empty string as parameter. In that case, the pathinfo() function does not return all expected keys, but only the following:
As I don’t know exactly why an empty ID gets passed to the method, I did not create a fix that just supresses the error. Maybe this would be sufficient, but maybe the issue is rooted somewhere else?
The text was updated successfully, but these errors were encountered:
like you said it might be better to find the issue that to add a quick fix and just check for en empty value and be done. :-)
its used in findByID and deleteByID which are kind of the core.
can you tell me a bit more how and when it happens? what data is involved?
does it happen in panel or frontend?
when panel on saving/creating stuff?
when in frontend can the set of IDs refrenced by autoid reduced to a human verifiable amount?
is it somehow reproducable?
does removing the index and creating it again solve the issue?
In one of my projects, it seems that the
pageFilenameFromPath()
sometimes gets an empty string as parameter. In that case, thepathinfo()
function does not return all expected keys, but only the following:This leads to the following exception:
Notice: Undefined index: dirname
(see https://github.com/bnomei/kirby3-autoid/blob/master/classes/AutoIDDatabase.php#L233)As I don’t know exactly why an empty ID gets passed to the method, I did not create a fix that just supresses the error. Maybe this would be sufficient, but maybe the issue is rooted somewhere else?
The text was updated successfully, but these errors were encountered: