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

Php Parse Error Unexpected T_paamayim_nekudotayim


  • Please log in to reply
6 replies to this topic

#1 tubepressuser

tubepressuser

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 July 2013 - 01:30 PM

Just purchased the standalone php version. As soon as I add this line:

 

<?php print TubePressPro::getHtmlForHead(true); ?>

 

 

This error appears and I get a blank page:

 

 

 PHP Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/html/domain.com/video/vendor/ehough/tickertape/src/main/php/ehough/tickertape/ContainerAwareEventDispatcher.php on line 142

 

Is there a fix for this? Thanks.

 



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 10 July 2013 - 07:44 PM

Hi tubepressuser,

 

Please follow all of the steps here: http://tubepress.com..._Standalone_PHP

 

for properly setting up and configuring your Standalone PHP installation.

 

Let us know.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 tubepressuser

tubepressuser

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 July 2013 - 11:11 AM

Still getting the same error when following this instruction. I run PHP 5.2.17 probably this is the problem?



#4 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 July 2013 - 09:35 PM

Tubepressuser,

 

Please download the "check.php" file here: http://tubepress.com...#Standalone_PHP

 

to ensure that your server meets all of the requirements.  The PHP 5.2.17 shouldn't be a problem, but there are a few other PHP dependencies that must be met,

 

Let us know,

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#5 tubepressuser

tubepressuser

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 12 July 2013 - 12:40 PM

This is what I see when running check.php:

 

Check TubePress requirements...

Check (1 / 4): PHP version... OK (detected PHP version 5.2.17)

Check (2 / 4): DOM extension... OK (detected dom extension version 20031129)

Check (3 / 4): PCRE extension... WARN (pcre detected, but unable to determine version - please manually verify the version below.)

Check (4 / 4): mbstring extension... OK (detected mbstring extension)

Checks passed, but there were warnings. This server might meet the requirements for TubePress

 

pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.02 2010-03-19

#6 tubepressuser

tubepressuser

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 12 July 2013 - 12:43 PM

Is there a workaround to include the needed .css files manually instead of using

<?php print TubePressPro::getHtmlForHead(true); ?>

 

I think it is the "::" which causes trouble.



#7 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 13 July 2013 - 10:19 PM

tubepressuser,

 

The "::" is not causing any issues, as we have many customers who are using this exact same line of code to implement their stand alone PHP versions of TubePress Pro.

 

 

/var/www/html/domain.com/video/vendor/ehough/tickertape/src/main/php/ehough/tickertape/ContainerAwareEventDispatcher.php on line 142

 

This is the parse error you are seeing, as posted above.  Will you please verify that you are, in fact, using Tubepress 3.0.1, and if not, please update to that version (our newest, stable release) and try again.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!