Error: No such file or directory
Hello,
I am getting the following error message at the top of my website:
Warning: include_once(addons/cookiebot-addons-init.php): failed to open stream: No such file or directory in /www1/4df/www.senseofstyletranslations.com/web/wp-content/plugins/cookiebot/cookiebot.php on line 106
Warning: include_once(): Failed opening 'addons/cookiebot-addons-init.php' for inclusion (include_path='.:/usr/local/lib/php70/php') in /www1/4df/www.senseofstyletranslations.com/web/wp-content/plugins/cookiebot/cookiebot.php on line 106
I'm not very confident with programming/developing so I really don't know what this means - how can I fix it?
-
Hi Steph,
What is your plugin version?
0 -
Hi Kenan,
Thanks for your reply. I have Cookiebot version 2.4.4.
Steph
0 -
Do you have the following file on your server:
wp-content/plugins/cookiebot/addons/cookiebot-addons-init.php
?
0 -
I'm not sure, how would I find this out?
0 -
Hi Steph,
I tried changing the line of code that makes an error on your site. Are you able to complete following steps to check if the error still occours:
Go to you plugins editor and edit cookiebot.php - the navigation to this functionality is:
Login as administrative user in Wordpress
Click "Plugins" in the left menu
Click "Plugin Editor" in the submenu of Plugins
Choose "Cookiebot" plugin in the dropdown top right - and click "Select"
Edit cookiebot.phpChange line 106 from:
include_once('addons/cookiebot-addons-init.php');
to:
include_once( dirname( __FILE__ ) . '/addons/cookiebot-addons-init.php' );Press "Update File" in the bottom.
Does it fix your problem? If it do - I will release a new version asap. Otherwise I need to reinvestigate...
Let me know if you have any questions to the guide above.Best Regards,
Johan0 -
Hi Johan,
Thanks so much for taking the time to reply.
Unfortunately, under "Plugins" in the left menu all I have is "installed plugins" and "add new" - there's no "plugin editor" for me to click on. I don't know if maybe I'm using a different WordPress interface or something?
Is there another way I can edit the plugin?
Thanks
Steph
0 -
Hi Steph,
Do you have SFTP/FTP or similiar access to your site?
In that case you can download and edit the file - the file is located in wp-content/plugins/cookiebot/cookiebot.php
/Johan
0 -
Hi Johan,
Yes, I do have FTP software although I'm not very familiar with how it works as I haven't really needed to use it much - please bear with me!
I have downloaded cookiebot.php using the FTP program and opened it in Notepad, but the text include_once('addons/cookiebot-addons-init.php') doesn't appear anywhere in the file...
(And in response to Kenan's earlier question, I have also now discovered that the file cookiebot-addons-init.php is not present in the addons folder.)
What should I do?
Steph
0 -
Hi Steph,
Try to delete the Cookiebot plugin (you need to deactivate the plugin first) - and install a fresh copy using the "Add new" button on the plugin page. It will probably solve the missing file.
When and how (eg. upload with FTP, using the "Add new" functionality on the plugin page) did you install the first version of the Cookiebot plugin?
/Johan
0 -
Hi Johan,
I deleted and reinstalled the plugin and the error message seems to have gone away (for now at least!) - thank you!
I would have used the "Add new" function to install the first version.
It does say that Cookiebot is untested with my version of WordPress so perhaps this is something that needs to be ironed out.
Thanks again for your help, let's hope there are no more issues now!
Steph
0 -
Hi Steph,
Thanks for your feedback. The error shouldn't occur again. I guess it have been a failed transfer between Wordpress repository and your website.
Regarding the unsupported message it should not be a problem. As far as I can see your are running WP 5.2.1 - and the plugin should work without any problem. We just didn't update the "Tested up to" tag yet - it will be done within a few days.
/Johan
0
Please sign in to leave a comment.
Comments
11 comments