Column Posts & PHP 5.4
-
Hey Lebasca,
It has been long since I’ve been on the forums of your plugin. Since tonight my host started implementing PHP 5.4, and my site doesn’t work. It says:
“Fatal error: Call-time pass-by-reference has been removed in /public/sites/www.platenkastvan.nl/wp-content/plugins/column-posts/column-posts.php on line 271”
I looked up the error message to see if I could find any solution, but I lack php-knowledge here. Only thing I know is that it is the point where is defined that if the number of posts is more than one, column post will come in effect.
`if ($numposts > 0){
<strong>$this->print_endposts($cp_class, $col_cat, $cp_column, &$cp_str);</strong>
}
} // end if categories`A post on Stackoverflow gave me a solution, but I couldn’t really see how it corresponded to this line in column-posts.php:
For example, instead of using:
// Wrong way!
myFunc(&$arg); # Deprecated pass-by-reference argument function myFunc($arg) { }
Use:
// Right way!
myFunc($var); # pass-by-value argument function myFunc(&$arg) { }</blockquote>
I hope you can have a look at it soon, in the meantime I will reach my host to see whether they can solve it somehow… (will consider a new donation after all these years;) )
Thanks anyway!
- The topic ‘Column Posts & PHP 5.4’ is closed to new replies.