Support » Plugins and Hacks » [Plugin: ProjectManager] Parse error in core.php

  • Resolved RunningSocks


    After changing my webhoster (new hoster is i get a lot of trouble with the Plugin ProjectManager. its no longer possible, to activate the plugin. i get always this error message:
    Parse error: syntax error, unexpected ‘)’, expecting ‘(‘ in /var/www/web199/html/wordpress/wp-content/plugins/projectmanager/lib/core.php on line 1185
    I dont know what to do. i posted the error also on “”, but the error isn’t resolved.
    what can i do?

Viewing 15 replies - 1 through 15 (of 29 total)
  • I am working on it.

    I double checked the position, but could not find any parse error and also don’t get one reported. Can you please post the lines you think are affected.

    Further what OS does your run? Linux or Windows? What server software? Apache or something else? whatt PHP version?

    Hi, these are the lines from 1183 to 1189:
    } elseif ( ‘numeric’ == $meta->type && !empty($meta_value) ) {
    if ( class_exists(‘NumberFormatter’) ) {
    $fmt = new NumberFormatter( get_locale(), NumberFormatter::DECIMAL );
    $meta_value = $fmt->format($meta_value);
    } else {
    $meta_value = apply_filters( ‘projectmanager_numeric’, $meta_value );
    And here the other Info’s. Info from phpMyAdmin-MySQL:
    # Server Version: 5.0.81-0.dotdeb.0
    # Protokoll-Version: 10
    # Server: Localhost via UNIX socket
    # phpMyAdmin –
    # MySQL-Client-Version: 5.0.81

    Info from phpinfo.php:

    PHP Version 4.4.9-0.dotdeb.1
    System Linux four.rr1 2.6.18-6-amd64 #1 SMP Tue May 5 08:01:28 UTC 2009 x86_64
    Build Date Aug 22 2008 16:21:50
    Server API CGI/FastCGI

    Well, that makes absolutely no sense. I kind of hoped that we were talking about different sections. I checked this part several times and don’t see where there should be a parse error! Further I don’t get anything. Do you know if your server has the Internationalization Functions ( installed, as the NumberFormatter is part of it. They are not part of the PHP core.

    You could try to take out the get_locale() calls and substitute them with the locale directly. It’s like the WP_LANG definition, e.g. ‘en_US’.

    Can you post a link to your phpinfo page?

    Hi koelle,
    i also dont know what todo. here is the link to my phpinfo:

    Upgrade to the development version. That is the same as Version 2.8 only that I call the NumberFormatter in a different way. Maybe that works. You can download it here.

    i think i’ going crazy ! the next failure:
    “Parse error: syntax error, unexpected ‘)’, expecting ‘(‘ in /var/www/web199/html/wordpress/wp-content/plugins/projectmanager/lib/core.php on line 1187”.

    In two hours i go to Wacken Open Air. I’m back at sunday evening.

    “same” problem, even with the updated version

    Parse error: syntax error, unexpected ‘)’, expecting ‘(‘ in /www/htdocs/v072475/wp-content/plugins/projectmanager/lib/core.php on line 1186

    I decided to remove the NumberFormatter call. It should work now, but also the number formatting needs to be done manually via the filter projectmanager_numeric to display it with 1000-delimiter etc.

    Currencies may be displayed correctly without interference, but can be formatted via the filter projectmanager_currency if neccessary.

    Nope, still fatal error, but another one this time

    Parse error: syntax error, unexpected ‘)’, expecting ‘(‘ in /www/htdocs/v072475/wp-content/plugins/projectmanager/lib/ajax.php on line 187

    Version 2.8.2 should work. I forgot about the NumberFormatter in the AJAX call.

    Lässt sich aktivieren, aber folgender Fehler:

    Warning: Missing argument 1 for projectmanager() in /…/wp-content/plugins/projectmanager/lib/core.php on line 101

    i think i can fix this issue. My guess also is that the above fatal errors are due to PHP 4 and NumberFormatter. Maybe it just didn’t work with PHP 4. I also recommend you ask if an upgrade to PHP 5 is possible, as I cannot promise to keep PHP 4 compatibility.

    HI, i’m back from W:O:A.
    i tried the version 2.9, but now i get a new fatal error in widget.php:
    Fatal error: Class projectmanagerwidget: Cannot inherit from undefined class wp_widget in /var/www/web199/html/wordpress/wp-content/plugins/projectmanager/lib/widget.php on line 9

    you need WP 2.8

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘[Plugin: ProjectManager] Parse error in core.php’ is closed to new replies.