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:
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
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)
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
Do you have any idea how I can solve this problem? I really need the plugin (it sounds awesome!)
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
12:34 pm October 21, 2009
Llasse
Member
posts 3
2
Post edited 4:44 pm – October 21, 2009 by Llasse
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:
<?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;
public $arrImageMsg = array();
public function __construct()
new:
<?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();
public $arrImageMsg = array();
public $arrErrorMsg_widg = array();
public $arrImageMsg_widg = array();
public $arrImageNames = array();
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?)
Please brainstorm and help
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..
12:50 pm October 21, 2009
Llasse
Member
posts 3
3
Post edited 5:31 pm – October 21, 2009 by Llasse
SOLVED
The Plugin need PHP5 – to use PHP5 (if your host lets you) put the following line in your .htaccess:
AddHandler php5-cgi .php
Sorry for the three posts it took me, maybe this will help people get to this page and find the solution
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!
5:52 pm October 28, 2009
WDS-Scott
Admin
posts 53
4
Post edited 9:52 pm – October 28, 2009 by WDS-Scott
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.