WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: ProjectManager] Parse error in core.php (30 posts)

  1. RunningSocks
    Member
    Posted 5 years ago #

    After changing my webhoster (new hoster is http://www.Revido.de)) 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 "http://kolja.galerie-neander.de/2009/07/projectmanager-2-7/#comments", but the error isn't resolved.
    what can i do?

  2. Kolja
    Member
    Posted 5 years ago #

    I am working on it.

  3. Kolja
    Member
    Posted 5 years ago #

    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?

  4. RunningSocks
    Member
    Posted 5 years ago #

    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 - 2.11.9.2
    # 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

  5. Kolja
    Member
    Posted 5 years ago #

    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 (http://de2.php.net/manual/en/book.intl.php) 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?

  6. RunningSocks
    Member
    Posted 5 years ago #

    Hi koelle,
    i also dont know what todo. here is the link to my phpinfo: http://www.runningsocks.de/info/phpinfo.php

  7. Kolja
    Member
    Posted 5 years ago #

    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.

  8. RunningSocks
    Member
    Posted 5 years ago #

    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.

  9. SiamTiger
    Member
    Posted 5 years ago #

    "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

  10. Kolja
    Member
    Posted 5 years ago #

    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.

  11. SiamTiger
    Member
    Posted 5 years ago #

    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

  12. Kolja
    Member
    Posted 5 years ago #

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

  13. SiamTiger
    Member
    Posted 5 years ago #

    Lässt sich aktivieren, aber folgender Fehler:

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

  14. Kolja
    Member
    Posted 5 years ago #

    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.

  15. RunningSocks
    Member
    Posted 5 years ago #

    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

  16. Kolja
    Member
    Posted 5 years ago #

    you need WP 2.8

  17. RunningSocks
    Member
    Posted 5 years ago #

    ups..ok.
    But on wordpress plugin directory there is compatibility up to wp 2.7.1, and not only for wp 2.8 and higher

  18. Kolja
    Member
    Posted 5 years ago #

    forgot to change that, sorry. This has just changed.

  19. RunningSocks
    Member
    Posted 5 years ago #

    ok. i installed wp 2.8.3. No Parse Error !!
    Projectmanager is running and i can administrate the table sources on overview section. all my tables and datasets are visible. but: on my sites comes no data. i tried all possible strings, but nothing happens. only the shortcode string appears. look at http://www.runningsocks.de/wordpress/runners-point/test-mit-projectmanager/
    i deactivate the plugin, delete the plugin directory, installed the new version, aktivate the plugin: without any effect.

  20. RunningSocks
    Member
    Posted 5 years ago #

    Hi, where is my last post from 18:55? its not visible ???
    ok, lets try again:
    ...................................................................
    ok. i installed wp 2.8.3. No Parse Error !!
    Projectmanager is running and i can administrate the table sources on overview section. all my tables and datasets are visible. but: on my sites comes no data. i tried all possible strings, but nothing happens. only the shortcode string appears. look at "http://www.runningsocks.de/wordpress/runners-point/test-mit-projectmanager"
    i deactivate the plugin, delete the plugin directory, installed the new version, aktivate the plugin: without any effect.

  21. Robert S
    Member
    Posted 5 years ago #

    Perhaps you have forgotten to wrap the projectmanager shortcode in "code" tags within the WP editor?

    R

  22. RunningSocks
    Member
    Posted 5 years ago #

    which "code" tags do yuo mean? the tags are the [] Brackets, right? on my other pages i changed nothing, and there works no short code also.
    on testpage i create a new shrotcode with the TinyMCE Advanced Button: same effect - not working. whats going wrong here?

  23. Robert S
    Member
    Posted 5 years ago #

    Shortcode needs to be entered as follows in the HTML editor:
    [projectmanager shorcode]

    R

  24. Robert S
    Member
    Posted 5 years ago #

    Sorry (needed to include backticks):

    Shortcode needs to be entered as follows in the HTML editor:
    <code>[projectmanager shorcode]</code>

    R

  25. RunningSocks
    Member
    Posted 5 years ago #

    i proved the shortcode in HTML Editor: this is inserted by TinyMCE Button:
    <code>[project id=2 template=table]</code>
    that should work, but doesn't. perhaps the reason is at this post: http://wordpress.org/support/topic/298799 ?

  26. Robert S
    Member
    Posted 5 years ago #

    Hi,

    A couple more ideas:
    - Does <code>[project id=2]</code> work?
    - You definitely have a project with ID 2?
    - Had a look at post '298799' - does not seem to be related to your issue.
    - What happens if you disable all other plugins - same issue?

    R

  27. RunningSocks
    Member
    Posted 5 years ago #

    ok lets go:
    - '[project id=2]' does not work
    - i have projects with id from 1 to 11, look at "http://www.runningsocks.de/wordpress/runners-point/test-mit-projectmanager/"
    - i disabled all other plugins, only plugin "Maintenance Mode 4.3" and "ProjectManager 2.9" ist running. same issue.

    another question: what PHP Version is needed for projectmanager? in my html root i placed a .htaccess with the following code:
    'AddType application/x-httpd-php5 .php'
    'AddHandler x-httpd-php5 .php'
    i deleted the .htaccess, but same issue.

  28. RunningSocks
    Member
    Posted 5 years ago #

    on disabling / enabling the plugin i get the error message from post "298799":
    Plugin could not be activated because it triggered a fatal error. Fatal error: Cannot redeclare class projectmanagerloader in /var/www/web199/html/wordpress/wp-content/plugins/projectmanager/projectmanager.php on line 37
    although the plugin is enabled / activated !!

  29. Robert S
    Member
    Posted 5 years ago #

    Hi,

    I'm slowly running out of ideas. What I would check/do next is:

    - See whether the issue occurs with Default Theme.
    - Ensure I was running on latest versions of WP and Theme.
    - Disable any functions that I might of added.
    - Confirm version of PHP and check for compatibility with ProjectManager.
    - Short of there being an issue with your Host - I would even go so far as: create my site from scratch - reinstall wordpress/DB - test for error - restore Data/DB - test for error - re-apply any customisations - test for error. Depending on where the error occured this will give you a better idea of the "cause"

    Short of the above I would request assistance from the author.

    R

  30. RunningSocks
    Member
    Posted 5 years ago #

    i think find the reason for my problems:
    my webhoster uses PHP 4.x, and i tried to activate PHP 5.x. To activate PHP 5.x i created a .htacces file in html root directory, but it seems not running properly. two days ago i created in another way this file, and now phpinfo.php shows me PHP 5.x
    the plugin is running and also shortcodes workes fine - no problems anywhere.

Topic Closed

This topic has been closed to new replies.

About this Topic