Support » Plugin: WP-Piwik » update calls fatal error

  • Resolved TungstenE2


    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author braekling


    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?

    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.

    same error with version

    Plugin Author braekling


    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?

    flogr creates a flickr galery.

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

    any idea?

    where can i get old version of wp-piwik. currently
    tracking is disabled… 🙁

    many thanks.

    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?

    Plugin Author braekling


    Chris: Fixed in

    Tungsten: 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.

    thanks, fixes the error.

    thanks for the nice plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘update calls fatal error’ is closed to new replies.