• Resolved flamber

    (@flamber)


    Hi Pablo,

    Thank you for continuing updating this awesome little plugin.

    In version 2.2.4 I’m seeing the following error on a webhost running PHP 5.3.29:
    Fatal error: Can’t use method return value in write context in /wp-content/plugins/file-renaming-on-upload/classes/Options/Rules/class-filename-option.php on line 80

    Yes, I know, it’s a horrible outdated PHP version – I’m just helping an NGO that hasn’t had time/money to switch to a proper webhost.

    If I change the referred function to simply return instantly and comment out the line giving the problem, then everything is good.

    public function truncate_filename( $filename_infs ) {
    	return $filename_infs;
    	//if ( empty( $this->get_option( $this->option_truncate ) ) ) {
    	//	return $filename_infs;
    	//}
    

    I don’t expect you want to make a fix for this, since no-one should be running such an old PHP version, but just wanted to let you know if someone else has this problem.

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

The topic ‘Fatal error: Can’t use method return value in write context – version 2.2.4’ is closed to new replies.