PerchCollectionImporter in Scheduled Task
I had what i thought was a working scheduled task, but in testing i failed to notice that it was running because i was pretty much always logged into the admin, so when the cron job is setup it keeps failing, with the following error:
Notice: Undefined index: userID in C:\source\***\perch\core\lib\PerchBase.class.php on line 125 Fatal error: Call to a member function itemID() on null in C:\source\***\perch\core\runway\lib\PerchCollectionImporter.class.php on line 76
i know the problem is about being logged in, becuase when i log in, run the scheduled task it works, so i am not sure if there is some extra context/information i need to pass to the collection importer to get this to work? can i just add the userID manually to the add_item call?