• Resolved aces

    (@aces)


    I’m getting these errors on my localhost debug….

    WARNING: C:\apache\Apache24\htdocs\west\wp-includes\functions.php:5573 – fopen(C:\apache\Apache24\htdocs\west\wp-content\plugins\stonehenge-em-osm\config): failed to open stream: Permission denied
    require(‘wp-admin/plugins.php’), require_once(‘wp-admin/admin-header.php’), do_action(‘admin_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, Stonehenge_Plugin->register_core_assets, Stonehenge_Plugin::localize_core_assets, get_plugin_data, get_file_data, fopen
    WARNING: C:\apache\Apache24\htdocs\[edited-out]\wp-includes\functions.php:5576 – fread() expects parameter 1 to be resource, bool given
    require(‘wp-admin/plugins.php’), require_once(‘wp-admin/admin-header.php’), do_action(‘admin_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, Stonehenge_Plugin->register_core_assets, Stonehenge_Plugin::localize_core_assets, get_plugin_data, get_file_data, fread
    WARNING: C:\apache\Apache24\htdocs\west\wp-includes\functions.php:5579 – fclose() expects parameter 1 to be resource, bool given
    require(‘wp-admin/plugins.php’), require_once(‘wp-admin/admin-header.php’), do_action(‘admin_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, Stonehenge_Plugin->register_core_assets, Stonehenge_Plugin::localize_core_assets, get_plugin_data, get_file_data, fclose

    As well as the following just in Query Monitor:

    Notice (Suppressed) Trying to get property ‘plugin’ of non-object 1

    wp-content/plugins/stonehenge-em-osm/config/license.php:21

    Plugin: stonehenge-em-osm

    Is there anything I can do to stop it other than turning off Debug & Query monitor?

    • This topic was modified 5 years, 4 months ago by aces.
    • This topic was modified 5 years, 4 months ago by aces.
    • This topic was modified 5 years, 4 months ago by aces.
    • This topic was modified 5 years, 4 months ago by aces.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    I experience the same behavior on my local test site on XAMPP with PHP 7.3. The problem seams to be caused by the method get_plugin_data in the main plugin file.

    Kind regards
    Patrick

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    @patrickrobrecht, that can only happen if you have configured your localhost to a custom configuration. If the plugin is in the default folder, the code should work.

    Hi Patrick,

    to the best of my knowledge, I do have no custom configuration. The plugin is placed in wp-content\plugins\stonehenge-em-osm (installed from w.org), so I’ve no idea what the custom configuration could be.

    The plugin itself seems to work anyway, but it outputs the PHP warnings (due to having debugging enabled in the local environment).

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I am using it myself on MAMP Pro (the Mac version of XXAMP) and I always have debugging on. Both on my live servers as well as the localhosts.

    I do not get these warnings, so I am unable to reproduce the problem… ??

    I have the same problem here and I’m with xampp too.
    These are the warnings:

    Warning: fopen(C:\xampp\htdocs\wordpress\wp-content\plugins\stonehenge-em-osm\config): failed to open stream: Permission denied in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 5782

    Warning: fread() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 5785

    Warning: fclose() expects parameter 1 to be resource, bool given in C:\xampp\htdocs\wordpress\wp-includes\functions.php on line 5788

    And here is where the plugin is installed: pic

    • This reply was modified 5 years, 2 months ago by Chupakabra33.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    @chupakabra33,
    Are you using PHP 7.4? This plugin is not fully compatible yet.

    @duisterdenhaag ,
    perhaps this is the problem. How can I chack out my version of PHP?
    I got it it’s Current PHP version: 7.3.9.

    • This reply was modified 5 years, 2 months ago by Chupakabra33.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    There are several ways to do that. If you’re not technical, you should be able to see it in your server control panel (cPanel or DirectAdmin) or ask your webhosting company. ??

    I am working on it, so it should be solved within a couple of days.

    @duisterdenhaag ,
    I got it it’s Current PHP version: 7.3.9.

    @duisterdenhaag ,
    Thank you so much. Have a nice evening.

    Thread Starter aces

    (@aces)

    I’m using php 7.3.7 but it seems to be fixed now!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error notice / warnings’ is closed to new replies.