• Hi,

    I installed the piwik plugin 0.9.9.9. The result was an error:

    Parse error: syntax error, unexpected T_STRING in /www/…/wp-content/plugins/wp-piwik/wp-piwik.php on line 751

    I compared the code with verion 0.9.9.2 and found this differences:

    Version 0.9.9.9

    if (class_exists('Piwik\FrontController'))
    			Piwik\FrontController::getInstance()->init();
    		else serialize(array('result' => 'error', 'message' => __('Class Piwik\FrontController does not exists.','wp-piwik')));
    		if (class_exists('Piwik\API\Request'))
    			$objRequest = new Piwik\API\Request($strParams);
    		else serialize(array('result' => 'error', 'message' => __('Class Piwik\API\Request does not exists.','wp-piwik')));

    Version 0.9.9.2

    if (class_exists('Piwik_FrontController'))
    			Piwik_FrontController::getInstance()->init();
    		// Add Piwik URL to params
    		$strParams .= '&piwikUrl='.urlencode(self::$settings->getGlobalOption('piwik_url'));
    		// This inits the API Request with the specified parameters
    		if (class_exists('Piwik_API_Request'))
    			$objRequest = new Piwik_API_Request($strParams);

    I changed the backslashes with the underscores.

    My wordpress blog runs again.

    I hope, my corrections are ok? There are another mistakes in the piwik plugin?

    Regards

    Aditl

The topic ‘wp_piwik Version 0.9.9.9: Error in wp_pwik.php’ is closed to new replies.