It's when I'm opening specified page: /wiki/xxx_(xxx)
Probably it's related with #REDIRECT keyword.

CommentFileSizeAuthor
#5 Redirect.php_.patch1.32 KBkenorb
#4 Redirect.php_.patch974 byteskenorb

Comments

kenorb’s picture


( ! ) Fatal error: Call to a member function token() on a non-object in /Volumes/Users HD/kenorb/Sites/coi/public_html/sites/all/modules/pearwiki_filter/Text/Wiki.php on line 1084
Call Stack
# Time Memory Function Location
1 0.0001 54348 {main}( ) ../index.php:0
2 0.3023 13168240 menu_execute_active_handler( $path = ??? ) ../index.php:18
3 0.3530 15666996 call_user_func_array ( 'dgu_publishers_node_page', array (0 => class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (...); public $files = array (...); public $build_mode = 0; public $readmore = TRUE }) ) ../menu.inc:348
4 0.3530 15667292 dgu_publishers_node_page( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE } ) ../menu.inc:0
5 0.3530 15667404 node_page_view( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE }, $cid = ??? ) ../dgu_publishers.module:89
6 0.3530 15667596 node_show( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE }, $cid = NULL, $message = ??? ) ../node.module:1803
7 0.3530 15667888 node_view( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE }, $teaser = FALSE, $page = TRUE, $links = ??? ) ../node.module:1107
8 0.3530 15668212 node_build_content( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE }, $teaser =FALSE, $page = TRUE ) ../node.module:1012
9 0.3531 15668620 node_prepare( $node = class stdClass { public $nid = '20815'; public $type = 'wiki'; public $language = ''; public $uid = '0'; public $status = '1'; public $created = '1308650533'; public $changed = '1308650533'; public $comment = '0'; public $promote = '0'; public $moderate = '0'; public $sticky = '0'; public $tnid = '0'; public $translate = '0'; public $vid = '115311'; public $revision_uid = '1'; public $title = 'Finance (dataset)'; public $body = '#REDIRECT [[Finance (endpoint)]]'; public $teaser = ''; public $log = ''; public $revision_timestamp = '1308650533'; public $format = '8'; public $name = ''; public $picture = ''; public $data = NULL; public $tags = NULL; public $last_comment_timestamp = '1308650533'; public $last_comment_name = NULL; public $comment_count = '0'; public $taxonomy = array (); public $files = array (); public $build_mode = 0; public $readmore = TRUE }, $teaser = FALSE ) ../node.module:1091
10 0.3531 15668944 check_markup( $text = '#REDIRECT [[Finance (endpoint)]]', $format = '8', $check = FALSE ) ../node.module:1047
11 0.3544 15671000 module_invoke( 'pearwiki_filter', 'filter', 'process', '0', '8', '#REDIRECT [[Finance (endpoint)]]', '8:4c00c8bf6a0bac5483b3cda8e0909edc' ) ../filter.module:457
12 0.3544 15672028 call_user_func_array ( 'pearwiki_filter_filter', array (2 => 'process', 3 => '0', 4 => '8', 5 => '#REDIRECT [[Finance (endpoint)]]', 6 => '8:4c00c8bf6a0bac5483b3cda8e0909edc') ) ../module.inc:462
13 0.3544 15672508 pearwiki_filter_filter( $op = 'process', $delta = '0', $format = '8', $text = '#REDIRECT [[Finance (endpoint)]]', '8:4c00c8bf6a0bac5483b3cda8e0909edc' ) ../module.inc:0
14 0.3544 15672780 pearwiki_filter_process( $text = '#REDIRECT [[Finance (endpoint)]]', $format = '8' ) ../pearwiki_filter.module:41
15 0.3850 16354336 Text_Wiki->render( $format = ??? ) ../pearwiki_filter.module:522
Variables in local scope (#15)
$char =
string '' (length=1)
$format =
string 'Xhtml' (length=5)
$i =
int 5
$in_delim =
boolean true
$k =
int 30
$key =
int 0
$opts =
array
  'type' => string 'start' (length=5)
  'text' => string 'Finance (endpoint)' (length=18)
$result =
null
$rule =
string 'Redirect' (length=8)
$tokenStack =
array
  0 => string 'Paragraph' (length=9)

 

kenorb’s picture

It's breaking during the cron as well.

kenorb’s picture

Title: Fatal error: Call to a member function token() on a non-object in Text/Wiki.php on line 1084 » Fatal error on REDIRECT: Call to a member function token() on a non-object in Text/Wiki.php on line 1084
kenorb’s picture

Status: Active » Needs work
StatusFileSize
new974 bytes

At least fix for fatal error on redirect.
TODO: How to redirect?

kenorb’s picture

StatusFileSize
new1.32 KB

Added support for redirect when wikitools is enabled and settings ticket (use wikitools for linking).

kenorb’s picture

Status: Needs work » Needs review
kenorb’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.