Fatal parse error on install

HomeSupportNextGEN Public UploaderFatal parse error on install

This topic has 1 voice, contains 3 replies, and was last updated by  admin 833 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
October 21, 2009 at 12:24 pm #243

admin

This is just the Plugin that I really need! I thought my problems were Version-Problems, so I waited for the new one to come out, but I still get the error on 1.3:
The plugin could not be activated because it caused a fatal error:



<div class=”sfcode”>
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/htdocs/w00bc2f4/wp-content/plugins/nextgen-public-uploader/inc/npu-upload.php on line 11</div>

<span style=”font-weight: normal;”>Although the older version (1.2.2) caused the error in line 6 (here on another server so the path differs, but it also has the exact same problem)</span>


<div class=”sfcode”>
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in/home/franzis/public_html/wordpress/wp-content/plugins/nextgen-public-uploader/inc/npu-upload.php on line 6</div>

<span style=”font-weight: normal;”>Do you have any idea how I can solve this problem? I really need the plugin (it sounds awesome!)</span>
Oh, btw: I have NextGEN installed and working (except for an error on one of the servers, where it creates thumbnails correctly, but gives the error message: [more] 1  (which is really weird…)
Peace, 
Lasse

October 21, 2009 at 12:34 pm #244

admin

Oh and these are my first 20 lines of the old (1.2.2_DE) and the new (1.3) version of npu-upload.php

old:

<div class=”sfcode”>
<?php
if (!class_exists(”npuGalleryUpload”)) {

    class npuGalleryUpload
    {
        public $arrImageIds;
        public $strGalleryPath = false;
        public $blnRedirectPage = false;
        public $arrUploadedThumbUrls = false;
        public $arrUploadedImageUrls = false;
        public $arrErrorMsg = array();
        public $arrImageNames = array();
        public $arrImageMeta = array();
        public $strTitle = false;
        public $strDescription = false;
        public $strKeywords = false;
        public $strTimeStamp = false;
<span> </span>public $arrImageMsg = array();

        public function __construct()
</div>
new:

<div class=”sfcode”>
<?php

/* ####################### */
/* NextGEN Public Uploader */
/* ####################### */

if (!class_exists(”npuGalleryUpload”)) {

    class npuGalleryUpload
    {
        public $arrImageIds;
        public $strGalleryPath = false;
        public $blnRedirectPage = false;
        public $arrUploadedThumbUrls = false;
        public $arrUploadedImageUrls = false;
        public $arrErrorMsg = array();
<span> </span>public $arrImageMsg = array();
<span> </span>public $arrErrorMsg_widg = array();
<span> </span>public $arrImageMsg_widg = array();
        public $arrImageNames = array();
</div>

<div>As you see I highlighted the lines I think it has problems with.. but I cannot make any sense of this.. might this be a PHP-version problem? (And how could I fix it?)</div>
<div>Please brainstorm and help <img class=”wp-smiley” src=”/wp-includes/images/smilies/icon_smile.gif” alt=”:)” /></div>

Edit: Sorry, I think I didn't use the forum search correctly, as the topic has already been brought up by someone else. 
I am using 

PHP Version 4.3.10-22 and PHP Version 4.4.9

on the two servers..

October 21, 2009 at 12:50 pm #245

admin

SOLVED
The Plugin need PHP5 – to use PHP5 (if your host lets you) put the following line in your .htaccess:

<div class=”sfcode”>AddHandler php5-cgi .php</div>

Sorry for the three posts it took me, maybe this will help people get to this page and find the solution <img class=”wp-smiley” src=”/wp-includes/images/smilies/icon_smile.gif” alt=”:)” />

HOWEVER: The Plugin doesn't seem to work..  neither does it display the widget (only the title of the widget) nor does it show an upload form, when I use the shortcode.. (but it seems to process it somehow, as the shortcode is not displayed on the page).
Help again!

October 28, 2009 at 5:52 pm #246

admin

Yes, PHP5 is required for this plugin as for now.
Looking to see how hard it would be to make it PHP4 friendly.
As far as it not showing. In 2.8.5 the user role “Visitor” does not work. Try using subscriber-admin.
Let me know if that fixes it for now.
Thanks!
Scott

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Register or login