tiki-user_reports_send.php from command line doesn't find ip_address
- Status
- Closed
- Subject
- tiki-user_reports_send.php from command line doesn't find ip_address
- Version
- 8.x
- Category
- Error
- Feature
- Daily reports
- Resolution status
- Out of Date
- Submitted by
- Clif Kussmaul
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
I am following instructions in http://doc.tiki.org/Daily+Reports
.
When I run:
php tiki-user_reports_send.phpfrom the Linux command line or in cron, I get an error:
This script can only be called by the server.$tikilib->get_ip_address() returns 0.0.0.0 not 127.0.0.1.
I am in a shared hosting environment (A2Hosting),
which could certainly contribute to the problem.- Solution
One solution is to modify tiki-user_reports_send.php
to accept both 127.0.0.1 and 0.0.0.0 as representing the server.Another solution is to modify $tikilib->get_ip_address()
to default to 127.0.0.1 instead of 0.0.0.0
although this might have many other side effects.- Workaround
- Importance
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4231
- Created
- Wednesday 23 May, 2012 20:58:08 UTC
by Clif Kussmaul - LastModif
- Friday 03 July, 2026 19:57:54 UTC