#1001 Random Content Creates Fatal PHP Error

v1.8.2
closed-fixed
nobody
3
2004-06-05
2003-11-02
No

Random content in Wiki Pages is documented from
TikiWiki 1.6 onwards, but it does not seem to have been
implemented. Attempting to use it causes a fatal error.

The documentation claims that the following should
work:

{rcontent id=1}

But it returns the following fatal error:

Fatal error: Call to undefined function:
get_random_content()
in /home/philosop/www/www/tiki/lib/tikilib.php on line
3366

I'm running TikiWIki 1.7.3. You get the same error on
TikiWiki.org, running the Polaris release candidate. The
TikiWiki.org site returns slightly more information:

Fatal error: Call to undefined function:
get_random_content() in /usr/local/tiki18/lib/tikilib.php
on line 4118

Call Stack
# Function Location
1 {main}() /usr/local/tiki18/tiki-editpage.php:0
2 tikilib->parse_data() /usr/local/tiki18/tiki-
editpage.php:502

James Wilson

Discussion

  • Philippe Cloutier

    • priority: 5 --> 3
    • labels: 544453 --> Feature Partially Broken
    • milestone: --> 344008
    • status: open --> open-accepted
     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    There's the same problem on my RC1 test site, with dynamic
    content existing or not, but seems it was implemented.

     
  • Philippe Cloutier

    • milestone: 344008 --> v1.8.2
    • status: open-accepted --> open-fixed
     
  • Philippe Cloutier

    Logged In: YES
    user_id=738765

    I fixed that for 1.8.3.

     
  • Philippe Cloutier

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.