Piwik error on my forum


(lespinet) #1

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


(vipsoft) #2

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


(lespinet) #3

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


(lespinet) #4

hi,

Please help.


(vipsoft) #5

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


(lespinet) #6

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.


(vipsoft) #7

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


(lespinet) #8

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


(vipsoft) #9

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


(lespinet) #10

hello,

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

thank you


(vipsoft) #11

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.


(lespinet) #12

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]

(vipsoft) #13

Please upgrade to Piwik 0.4.1.


(lespinet) #14

good evening,

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

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

thank you


(vipsoft) #15

who’s ben?

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


(lespinet) #16

[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


(vipsoft) #17

Which problem?


(lespinet) #18

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]

(vipsoft) #19

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


(lespinet) #20

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!