Title: Column Posts &amp; PHP 5.4
Last modified: August 24, 2016

---

# Column Posts & PHP 5.4

 *  Resolved [Dr. Killjoy](https://wordpress.org/support/users/dr-killjoy/)
 * (@dr-killjoy)
 * [11 years ago](https://wordpress.org/support/topic/column-posts-php-54/)
 * 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!
 * [https://wordpress.org/plugins/column-posts/](https://wordpress.org/plugins/column-posts/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Dr. Killjoy](https://wordpress.org/support/users/dr-killjoy/)
 * (@dr-killjoy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/column-posts-php-54/#post-6037187)
 * I still wonder whether there is a solution for this issue or not. Could you help
   me out on this one?
 *  Plugin Author [lebasca](https://wordpress.org/support/users/lebasca/)
 * (@lebasca)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/column-posts-php-54/#post-6037206)
 * Hi Dr. Killjoy,
 * I have been busy doing other projects and I was not able to check this forum 
   but today I had some time. So, I will check on this issue soon. Thank you for
   considering doing a donation.
 * Kind regards,
    Lebasca
 *  Plugin Author [lebasca](https://wordpress.org/support/users/lebasca/)
 * (@lebasca)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/column-posts-php-54/#post-6037207)
 * Hi Dr. Killjoy,
 * You should update the plugin because the error coding was fixed long time ago.
   My current code doesn’t contain deprecated pass-by-reference argument &$cp_str.
 * Kind regards,
    Catherine

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Column Posts & PHP 5.4’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/column-posts_d8dbdc.svg)
 * [Column Posts](https://wordpress.org/plugins/column-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/column-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/column-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/column-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/column-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/column-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [lebasca](https://wordpress.org/support/users/lebasca/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/column-posts-php-54/#post-6037207)
 * Status: resolved