PDA

View Full Version : Uninstalling any products core files gives an error?


Simon Lloyd
03-01-2014, 04:44 PM
Hi all, I have a really strange problem, whatever product I uninstall (doesn't matter which) and then delete the core files that came with it I get this error

Warning: require([path]/xxx/xxxx/hooks/init_startup.php) [function.require]: failed to open stream: No such file or directory in [path]/includes/init.php(304) : eval()'d code on line 203

Fatal error: require() [function.require]: Failed opening required '/home/thecodec/public_html/forumz/xxx/xxxx/hooks/init_startup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thecodec/public_html/forumz/includes/init.php(304) : eval()'d code on line 203

Its the same for every product, if I disable hooks in config.php (doesn't work if I disable hooks in admincp) then I don't get the error but then no products work.

Any ideas how to refresh the datastore as I believe it's that, if I reinstall any previous product the settings I set (including secret keys) are automatically put in place??

It's driving me nuts!

Lynne
03-01-2014, 04:48 PM
Line 304 of init.php is for the init_startup hook. So, your problem is with a product that uses that hook. So, disable products via the config.php file and then disable all products that use that hook location. Then, take the line out of the config.php file and see if you still have the same problem.

Simon Lloyd
03-01-2014, 06:44 PM
That wasn't the problem Lynne for some reason I had to change permissions on datastore/datastore_cache.php to 777, removed the lines that called init.php, edited a plugin and all seemed fine?