I've found a few other posts where people are having similar problems,
but all of them seem to be solving their problems by realizing that
they are running PHP4 on the production server. In my case, I am
definitely running PHP5 - and I don't have any errors using Cake
classes and methods through the browser interface. The issue only
surfaces when I'm running my shell script. In fact - one of my models
is being used by the shell script and a few standard controllers and
it is only throwing an error when run through the shell script.

- Jason

On May 18, 3:15 pm, Jason <[email protected]> wrote:
> I have a working app that runs with no errors on my local machine.
> When I upload it to my production server (DreamHost) the app works
> fine in the browser, but I have a shell script that I run through the
> console that gives me errors on the production server.
>
> The errors I'm getting seem to have to do with class object syntax.
> For example - this function declaration in my shell file:
>
> private function _checkRules($text, $author_type, $rules) {
>
> Produces this error
>
> Parse error: syntax error, unexpected T_STRING, expecting
> T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/jasford/
> feedmagnet.com/app/vendors/shells/import.php on line 72
>
> but if I remove the word "private" from the front of the line it does
> not return a syntax error.
>
> Does anyone have any idea what could be going on here? I'm running PHP
> 5.2.9 locally (Entropy release 7) and PHP 5.2.6 on the remote server.
>
> - Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to