Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 02:51 pm EST

Geeklog Forums

emailgeeklogstories and php


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Bonjour
Excuse me for my language.

When I set the cron for emailgeeklogstories I receive everyday a email with the following texte

Text Formatted Code
Usage: php [options] [-f] <file> [args...]
       php [options] -r <code> [args...]
       php [options] [-- args...]
  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin
 



May be a problem with php (Php is 4.4.0).
Someone can tell me what can I do to resolve it?

Thank You.

Ben.


I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

ByteEnable

Forum User
Full Member
Registered: 10/20/03
Posts: 138
Your cron command should like this:

php -q /path/to/your/geeklog/emailgeeklogstories

Regards,

Byte
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Your PHP version doesn't seem to like the -q parameter (see the first line of the emailgeeklogstories file). Try removing it.

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Thank you misters. Sorry and I'm confused, it was a problem of patch Embarassed

Everything seems to be ok now.

I received 2 emails. One with the stories and the other from cron with warnings




Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/emailgeeklogstories:3) in /home/site/public_html/system/lib-sessions.php on line 189

Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/emailgeeklogstories:3) in /home/site/public_html/system/lib-sessions.php on line 201

Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/site/public_html/plugins/stats/functions.inc on line 341



What thinking about those warnings?

Ben.
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EST. The time is now 02:51 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content