Error in update.php & update_daemon2.php CRON

Howtos, instructions and links to related software. Do not ask questions here.
cristoj
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 17 Jan 2013, 12:26

Error in update.php & update_daemon2.php CRON

Postby cristoj » 17 Jan 2013, 12:44

Hi, my cron in order to update all the feeds not work, in the error log file i can see the error:

When i cron the update.php file:
PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/gktxllqs/public_html/feeds/update.php on line 100
this is de line 100 = $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op);

When i cron the update.php file:
PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/gktxllqs/public_html/feeds/update.php on line 210
this is de line 210 = $pluginhost->run_hooks($pluginhost::HOOK_UPDATE_TASK, "hook_update_task", $op);

My host: APACHE 2.2.14, PHP 5.3.8, linux - ubuntu, Arquitectura x86_64.

Whow con i solved this error??, THANKS

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Error in update.php & update_daemon2.php CRON

Postby fox » 17 Jan 2013, 13:17


kenboldt
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 18 Mar 2013, 21:06

Re: Error in update.php & update_daemon2.php CRON

Postby kenboldt » 18 Mar 2013, 21:09

for me, the short answer is yes. I get the error.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Error in update.php & update_daemon2.php CRON

Postby fox » 18 Mar 2013, 21:41

For you, the short answer is read the FAQ.

kenboldt
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 18 Mar 2013, 21:06

Re: Error in update.php & update_daemon2.php CRON

Postby kenboldt » 19 Mar 2013, 00:40

According to the cPanel on my host page I have version 5.3.20

User avatar
erikbennett
Bear Rating Trainee
Bear Rating Trainee
Posts: 20
Joined: 17 Mar 2013, 03:08
Location: Seattle, WA

Re: Error in update.php & update_daemon2.php CRON

Postby erikbennett » 19 Mar 2013, 22:20

I ran into the same problem. Make sure you're pointing to the proper place for PHP 5.3 within your CRON call. For me, my host has both 5.2 and 5.3, and when I used the CRON call as listed in the FAQ, it ran it through 5.2 and I got the same errors above. As soon as I changed the call to where 5.3 was installed for my host, it worked.

Hermit
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 20 Mar 2013, 08:27

Re: Error in update.php & update_daemon2.php CRON

Postby Hermit » 20 Mar 2013, 08:35


User avatar
pahles
Bear Rating Disaster
Bear Rating Disaster
Posts: 50
Joined: 20 Mar 2013, 17:02

Re: Error in update.php & update_daemon2.php CRON

Postby pahles » 20 Mar 2013, 17:20

My cronjob keeps insisting that there is an unexpected T_PAAMAYIM_NEKUDOTAYIM in update.php on line 100. I'm on PHP 5.3.5, and tried everything mentioned above (this includes reading the FAQ!). I'm at a loss right now.

nimmul
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 22 Mar 2013, 09:57

Re: Error in update.php & update_daemon2.php CRON

Postby nimmul » 22 Mar 2013, 09:59

I have the same problem with php 5.3.20

Latimer
Bear Rating Master
Bear Rating Master
Posts: 131
Joined: 17 Mar 2013, 19:35

Re: Error in update.php & update_daemon2.php CRON

Postby Latimer » 22 Mar 2013, 19:36


User avatar
Monfreid
Bear Rating Trainee
Bear Rating Trainee
Posts: 23
Joined: 04 Apr 2013, 18:16

Re: Error in update.php & update_daemon2.php CRON

Postby Monfreid » 28 Jun 2013, 17:53

I had the same issue with 1and1, by default it is using php 4 but you need to force the script to use php5
to find the path to php5 use:

which php5

and then update the cron job accordingly with the path given

reepicheep
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 01 Jul 2013, 08:20

Re: Error in update.php & update_daemon2.php CRON

Postby reepicheep » 01 Jul 2013, 08:25


reepicheep
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 01 Jul 2013, 08:20

Re: Error in update.php & update_daemon2.php CRON

Postby reepicheep » 01 Jul 2013, 17:05

Last edited by reepicheep on 04 Jul 2013, 18:23, edited 1 time in total.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Error in update.php & update_daemon2.php CRON

Postby sleeper_service » 04 Jul 2013, 00:01

in a rare case of my being helpful, I offer this:

"PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM" is a *PHP ERROR* not a ttrss error.

roughly translated, in this context, it means "you are using a too old version of php, get a newer one". the way T_PAAMAYIM_NEKUDOTAYIM (or ::) is being used where the error happens was introduced in php 5.3, so if you're getting that error, you're not using php 5.3+ no matter what checkbox you've clicked somewhere.


Return to “Knowledge Base”

Who is online

Users browsing this forum: No registered users and 3 guests