Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
blog:mosperforms_bug [2008/02/24 19:19]
moleski created
blog:mosperforms_bug [2017/07/13 20:33] (current)
Line 1: Line 1:
 +====== 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 [[http://​forum.joomla.org/​viewtopic.php?​f=428&​t=197482&​st=0&​sk=t&​sd=a&​start=30|this thread]] in the Joomla! forums.
 +
 +  * Edit the offending line.
 +
 +The old code read in mosperforms.php read like this:
 +
 +<code php>
 + // simple performance check to determine whether bot should process further
 + if ( strpos( $row->​text,​ '​mosperforms'​ ) === false ){
 + return true;
 + }
 +</​code>​
 +
 +The edited code that seems to be working--or,​ at least, not giving the old error message is:
 +
 +<code php>
 + // simple performance check to determine whether bot should process further
 + if ((( strpos( $row->​introtext,​ '​mosperforms'​ ) === false ) || ( strpos( $row->​fulltext,​ '​mosperforms'​ )) === false )) {
 + return true;
 + }
 +</​code>​
  
 
blog/mosperforms_bug.txt ยท Last modified: 2017/07/13 20:33 (external edit)
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki