Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Installation Error


  • Please log in to reply
7 replies to this topic

#1 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 01:02 AM

When trying to activate tubepress I get the following "fatal error"

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/harrin2/public_html/bostonterrierstoday.com/wp-content/plugins/tubepress/tubepress.php on line 34

Thanks!!

#2 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 01:33 AM

BTW I checked and my server is using php 5

I tried adding "AddType x-mapp-php5 .php" at the top of the script and saved it but it still wouldn't activate.

#3 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 01:51 PM

Follow-up

I really want to use this plugin it looks really cool!

I have also now; tried adding : AddType x-mapp-php5 .php to:

The .htaccess file in the root directory before, in and after the #wordpress script in .htacess on both the root directory and the specific blog directory but still get the same results of a parse error??

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 01 June 2011 - 02:07 PM

Add the following line somewhere before line 34 in /home/harrin2/public_html/bostonterrierstoday.com/wp-content/plugins/tubepress/tubepress.php

echo 'My PHP version is ' . phpversion();
What's the output show?

#5 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 02:44 PM

I couldn't get it to echo back - my php coding level is very low! but.. Here is the php version that my control panel says that I am running:

PHP version 5.2.14

Helps??

Thanks!!

#6 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 02:52 PM

FYI when I go to: http://bostonterrier...te...epress.php

it still returns this: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/harrin2/public_html/bostonterrierstoday.com/wp-content/plugins/tubepress/tubepress.php on line 34

It doesn't echo back my php version.

Here's where I put it BTW:
/**
Plugin Name: TubePress
Plugin URI: http://tubepress.org
Description: Displays gorgeous YouTube and Vimeo galleries in your posts, pages, and/or sidebar. Upgrade to TubePress Pro for more features!
Author: Eric D. Hough
Version: 2.2.0
Author URI: http://ehough.com

Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)

This file is part of TubePress (http://tubepress.org)

TubePress is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

TubePress is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with TubePress. If not, see .
*/
echo 'My PHP version is ' . phpversion();
if (version_compare(PHP_VERSION, '5.0.2', '>=')) {

function_exists('tubepress_load_classes')
|| require dirname(__FILE__) . '/sys/classes/tubepress_classloader.php';
tubepress_load_classes(array('org_tubepress_impl_ioc_IocContainer'));

org_tubepress_impl_ioc_IocContainer::getInstance()->get('org_tubepress_api_bootstrap_Bootstrapper')->boot();
}

?>

#7 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 05:16 PM

OK figured out how to make a new php file then ran it and got the following. Obviously even though it says in my Cpanel I'm running 5.2.14 I'm not! So I guess I call the hosting company next right?

PHP Version 4.4.9


System Linux venus.lunarpages.com 2.6.18-164.11.1.el5PAE #1 SMP Wed Jan 20 08:16:13 EST 2010 i686
Build Date Oct 19 2010 03:02:41
Configure Command './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-memory-limit' '--enable-sockets' '--prefix=/usr/php4' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-pspell' '--with-swf=/opt/flash/' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/php4/lib/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies with the ionCube PHP Loader v3.3.20, Copyright © 2002-2010, by ionCube Ltd., and with Zend Optimizer v3.3.3, Copyright © 1998-2007, by Zend Technologies

#8 Tom Harrington

Tom Harrington

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 01 June 2011 - 10:35 PM

OK fixed! Thanks!! Who knew I could change my PHP version via my Cpanel? Learn something new everyday!!