PerForms bug

Problem: PHP Notice: Undefined property: text in /home/nsrca.org/public_html/plugins/content/mosperforms.php on line 30

Cause (speculative): it seems as though J 1.5 has broken the $text field into two new field: $introtext and $fulltext.

Cure:

  • Get updated Performs component from the zip file mentioned in this thread in the Joomla! forums.
  • Edit the offending line.

The old code read in mosperforms.php read like this:

	// simple performance check to determine whether bot should process further
	if ( strpos( $row->text, 'mosperforms' ) === false ){
		return true;
	}

The edited code that seems to be working–or, at least, not giving the old error message is:

	// simple performance check to determine whether bot should process further
	if ((( strpos( $row->introtext, 'mosperforms' ) === false ) || ( strpos( $row->fulltext, 'mosperforms' )) === false )) {
		return true;
	}
 
blog/mosperforms_bug.txt · Last modified: 2023/08/12 19:17 by 127.0.0.1
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki