Piwik error on my forum

hello,

I have had this error today on my forum:

Parse error: syntax error, unexpected '<' in /[...]/[...]/[...]/[...]/[...]/piwik/core/testMinimumPhpVersion.php on line 89

and each time I add this:

?>

at the end of each file that is placed in error, it changes to a file each time.
A belief that I must add this code:

?>

at the end of every file “php”.

Can you help me?

thank you

That shouldn’t be necessary if your forum is using the JavaScript API for tracking.

I not understand is what “JavaScript API”? an example please?

hi,

Please help.

Can you check your .htaccess files? It looks like you have some mod_rewrite action going on.

hi,
Thank you for your reply.

yes I am “mod seo”, but I turned off, here is the code. “htaccess”:

<Files *>
    Order Allow,Deny
    Deny from All
</Files>

another “. htaccess” at the root of my forum:

# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

ErrorDocument 400 /phpBB3/error.php?mode=400
ErrorDocument 401 /phpBB3/error.php?mode=401
ErrorDocument 403 /phpBB3/error.php?mode=403
ErrorDocument 404 /phpBB3/error.php?mode=404
ErrorDocument 500 /phpBB3/error.php?mode=500

I have plenty of other ". Htaccess "…, but I will not expose you all.

soon.

Hmm… check your configuration (e.g., php.ini or .htaccess). It’s probably something in auto_append_file.

good, locally I have this bug:

Fatal error: Call to undefined function memory_get_usage() in [...]:\[...]\EasyPHP 2.0b1\www\[...]\piwik\core\Timer.php on line 60

and online forum this bug:

Parse error: syntax error, unexpected '<' in /[...]/[...]/[...]/[...]/[...]/piwik/core/testMinimumPhpVersion.php on line 89

namely that I have not the php.ini file on my online forum

I did not find: “auto_append_file” in the files “.Htaccess”

thank you

Sorry, it looks like your PHP installation/build is deficient. Can you try upgrading to EasyPHP 3?

hello,

I will tried my local forum, but for my online forum, what can I do?

thank you

Look at your php config. If you can’t find your php.ini file (often /etc/php.ini, but also possibly nested deeper, eg /etc/php5/apache2/php.ini), try adding this file to your piwik folder and capture the output.

<?php phpinfo(); ?>

I still think your site has an auto append – possibly intended to capture this programming practice (omitting the closing tag). The reason why we do this is to avoid sending any output prematurely to the browser before headers are set – a common cause is whitespace after the closing tag.

good, I reinstall all, and here I am with a new error on my online forum:

Declaration of Piwik_Log_APICall::log() should be compatible with that of Piwik_Log::log() 
in '/[...]/[...]/[...]/[...]/[...]/piwik/core/Log/APICall.php' at the line 52

#0  Piwik_ErrorHandler(2048, Declaration of Piwik_Log_APICall::log() should be compatible with that of Piwik_Log::log(), /[...]/[...]/[...]/[...]/[...]/piwik/core/Log/APICall.php, 52, Array ()) called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/Piwik.php:1201]
#1  Piwik::createLogObject() called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/Piwik.php:1201]
#2  Piwik::createLogObject() called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/FrontController.php:235]
#3  Piwik_FrontController->init() called at [/[...]/[...]/[...]/[...]/[...]/piwik/index.php:50]

Please upgrade to Piwik 0.4.1.

good evening,

ben is done, where do you think I downloaded Piwik?

So, what to do, for it is up to date?

thank you

who’s ben?

If you’ve upgraded php to 5.2.10, you need to update piwik to 0.4.1.

[quote=vipsoft @ Jun 27 2009, 03:38 AM]who’s ben?

If you’ve upgraded php to 5.2.10, you need to update piwik to 0.4.1.[/quote]

hello,

All is updated!

=> PHP Version 5.2.10
=> Piwik Version 0.4.1

here, but my problem is still there, done that?
thank you

Which problem?

always the same style_emoticons/<#EMO_DIR#>/blink.gif :

Declaration of Piwik_Log_APICall::log() should be compatible with that of Piwik_Log::log()
in '/[...]/[...]/[...]/[...]/[...]/piwik/core/Log/APICall.php' at the line 52

#0  Piwik_ErrorHandler(2048, Declaration of Piwik_Log_APICall::log() should be compatible with that of Piwik_Log::log(), /[...]/[...]/[...]/[...]/[...]/piwik/core/Log/APICall.php, 52, Array ()) called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/Piwik.php:1201]
#1  Piwik::createLogObject() called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/Piwik.php:1201]
#2  Piwik::createLogObject() called at [/[...]/[...]/[...]/[...]/[...]/piwik/core/FrontController.php:235]
#3  Piwik_FrontController->init() called at [/[...]/[...]/[...]/[...]/[...]/piwik/index.php:50]

Your Piwik installation was not updated properly. In 0.4.1 Piwik_Log_APICall::log was renamed Piwik_Log_APICall::logEvent.

good evening,

Ca y est!, Finally!
Thank you for your perseverance!

So the second time I download the latest version of piwik, and I have a message “Update your piwik”, while the first time, I had not.

Thank you for all!