• Resolved dbase66

    (@dbase66)


    Fatal error: Uncaught Error: Call to undefined function opcache_get_status() in /homepages/20/d34869179/htdocs/AM/wp-content/plugins/flush-opcache/admin/class-flush-opcache-admin.php:92 Stack trace: #0 /homepages/20/d34869179/htdocs/AM/wp-includes/class-wp-hook.php(307): Flush_Opcache_Admin->flush_opcache_admin_page('') #1 /homepages/20/d34869179/htdocs/AM/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /homepages/20/d34869179/htdocs/AM/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /homepages/20/d34869179/htdocs/AM/wp-admin/admin.php(259): do_action('toplevel_page_f...') #4 {main} thrown in /homepages/20/d34869179/htdocs/AM/wp-content/plugins/flush-opcache/admin/class-flush-opcache-admin.php on line 92

    ; Memcached by OPCache
    zend_extension=opcache.so
    opcache.enable=1
    opcache.memory_consumption=32
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=3000
    opcache.revalidate_freq=180
    opcache.fast_shutdown=0
    opcache.enable_cli=1
    opcache.revalidate_path=0
    opcache.validate_timestamps=1
    opcache.max_file_size=0
    opcache.file_cache = /kunden/homepages/20/d34869179/htdocs/.opcache
    opcache.file_cache_only=0
    • This topic was modified 2 years, 8 months ago by Yui.
    • This topic was modified 2 years, 8 months ago by Jan Dembowski.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dbase66

    (@dbase66)

    Thread Starter dbase66

    (@dbase66)

    Intertesting Problem

    Your Command (!extension_loaded(‘Zend OPcache’)) called in test.php file is running.
    But as command in your Plugin not.

    How could this be?

    test.php in root

    <?
    if (!extension_loaded('Zend OPcache')) {
    	echo '<div class="notice notice-error">
            <p>You do not have the Zend OPcache extension loaded, you need to install it to use this plugin flush-opcache.</p>
            </div>';
    }else {
    	echo '<p>RIGHT, ZEND OPCache is active!<p>';
    }
    if (!opcache_get_status()) {
    	echo '<div class="notice notice-error">
            <p>Zend OPcache is loaded but not activated. You need to set opcache.enable=1 in your php.ini flush-opcache.</p>
            </div>';
    }else {
    	echo '<p>RIGHT, OPCache is enabled!<p>';
    }
    ?>

    gives the answer

    RIGHT, ZEND OPCache is active!
    RIGHT, OPCache is enabled!

    • This reply was modified 2 years, 8 months ago by Yui.
    • This reply was modified 2 years, 8 months ago by Jan Dembowski. Reason: Formatting
    Thread Starter dbase66

    (@dbase66)

    OK, the command only works in root!
    the same command in folder /wp-content breaks.

    this ist crazy.

    Thread Starter dbase66

    (@dbase66)

    php.ini is in root
    phpinfo() response without opcache enabled in other folders as root

    Thread Starter dbase66

    (@dbase66)

    Solution
    php.ini must be in wp-admin folder!!!

    Plugin Author nierdz

    (@mnttech)

    This is really a weird bug and I don’t understand what’s going on here. Something is broken in your php configuration. You should have the same behavior everywhere in the same virtualhost.

    By the way, you should not put php.ini inside a public folder, it should be somewhere not readable by your http server (apache). At least, not in the public folder served by apache. Maybe you could use something like .user.ini to override default configuration.

    Thread Starter dbase66

    (@dbase66)

    i think so. im using dedicated server at ionos.de
    there is noch global setting of php.ini
    each app must set his own php.ini

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ionos VS. Opcache’ is closed to new replies.