The plugin let go of my post head includes again (one css and one js file). When I got to the relevant page on my site today, I received this error message:
Warning: implode(): Invalid arguments passed in [my site root]/plugins/post-head-includes/item.php on line 93
Warning: implode(): Invalid arguments passed in [my site root]/plugins/post-head-includes/item.php on line 93
When I went to edit the page, the previously attached files were missing. Once I explicitly reattached them, it worked fine.
Does the above error provide a clue as to why the plugin drops the files?
Line 93 is the second line of the following function:
public function getDeps() {
if((implode(',',$this->getData('deps')))=='')
return false;
return $this->getData('deps');
}
Thanks! Its functionality is great, and will hopefully be made smooth.
~Brendan
Brendan, Thanks for the good feedback. I’m thankful that you appreciate my work.
Sorry you’re experiencing some issues, though. I can see the problem with that line of code. I guess I was lazily combining operations.
I’ll add it to my to-do list for this Friday, and so you should hopefully see a fix by the weekend.
Getting back to you, I wasn’t able to reproduce your problem. But I looked over the code, and found some potential issues with how it saves the includes to the database. So I corrected them. Try it now by upgrading your plugin to the latest (0.2.1).
If that doesn’t help, please open a new support thread and give me more information; specifically, the entire configuration for each of these files (paths, dependencies, version, in footer, etc …).