WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] update calls fatal error (9 posts)

  1. TungstenE2
    Member
    Posted 1 year ago #

    updating latest version causes fatal error.

    Fatal error: Call to undefined function OPTIONAL_SETTING() in /home/htdocs/web28/html/flogr/admin/config.php on line 27

    why does the plugin try to updated files on server not belonging to wp installation?

    any ideas how to fix this? plugin is now disabled.

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    WP-Piwik does not change any files, neither its own nor foreign files. WordPress' own update feature just downloads the latest WP-Piwik zip and unzips it to the plugin directory.

    Maybe you can tell me something about your configuration and why WP-Piwik should affect files outside WordPress?

  3. TungstenE2
    Member
    Posted 1 year ago #

    i run WP 3.5.1 as CMS for two different projects.
    I updated WP and plugins frequently.

    Today I updated automatically 4 plugins. Result was white screen of death.
    I disabled all plugins in DB in order to access the admin dashboard again.
    One by one I enabled the plugins again. All worked fine, execpt the updated wp-piwik. I get the error message: Fatal error: Call to undefined function OPTIONAL_SETTING() in /home/htdocs/web28/html/flogr/admin/config.php on line 27

    Sorry, I was wrong about updating. But why is the plugin trying to call config.php of flogr? it is not part of wp installtion. I only call this in an iframe on one of my pages. wp-piwik was working fine with previous version.

  4. TungstenE2
    Member
    Posted 1 year ago #

    same error with version 0.9.9.5

  5. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    WP-Piwik itself does not call flogr's config. But it come's with its own config file.

    Maybe you are using a particular include path configuration or something similar?

    Can you tell me what flogr is for?

  6. TungstenE2
    Member
    Posted 1 year ago #

    flogr creates a flickr galery.

    did not have an issue prior the version 0.9.9.4
    flogr is running for one year and wp-piwik was
    working perfect until update to version 0.9.9.4.

    any idea?

    where can i get old version of wp-piwik. currently
    tracking is disabled... :-(

    many thanks.

  7. Chris
    Member
    Posted 1 year ago #

    Thanks for this excellent plugin!

    The latest version ends with a fatal error on line 5 of piwik.php

    This is there:
    $arySettings = wp_piwik::loadSettings();

    Looking at the class in wp-piwik.php, it does not seem to contain a loadSettings method, so is that the reason for the error?

    Oh and by the way, shouldn't the class be wrapped in an 'if !class_exists' statement?

  8. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Chris: Fixed in 0.9.9.6

    Tungsten: 0.9.9.6 will try to load its config by an absolute path. Maybe this will work. Anyhow you should check your server settings. New issues are conceivable if every script will load the flogr config.php instead of their own config files.

  9. TungstenE2
    Member
    Posted 1 year ago #

    thanks, 0.9.9.6 fixes the error.

    thanks for the nice plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.