Error: No such file or directory

Comments

11 comments

  • Avatar
    Kenan

    Hi Steph,

    What is your plugin version?

    0
    Comment actions Permalink
  • Avatar
    Steph Noviss

    Hi Kenan,

    Thanks for your reply. I have Cookiebot version 2.4.4.

    Steph

    0
    Comment actions Permalink
  • Avatar
    Kenan

    Do you have the following file on your server:

    wp-content/plugins/cookiebot/addons/cookiebot-addons-init.php

    ?

    0
    Comment actions Permalink
  • Avatar
    Steph Noviss

    I'm not sure, how would I find this out?

    0
    Comment actions Permalink
  • Avatar
    Johan Holst Nielsen

    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.php

    Change 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,
    Johan

    0
    Comment actions Permalink
  • Avatar
    Steph Noviss

    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
    Comment actions Permalink
  • Avatar
    Johan Holst Nielsen

    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
    Comment actions Permalink
  • Avatar
    Steph Noviss

    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
    Comment actions Permalink
  • Avatar
    Johan Holst Nielsen

    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
    Comment actions Permalink
  • Avatar
    Steph Noviss

    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
    Comment actions Permalink
  • Avatar
    Johan Holst Nielsen

    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
    Comment actions Permalink

Please sign in to leave a comment.