Php Error after update
-
Hi, after yesterday update my page was broken (error 500 and php error pointed to class file).
I managed to fix that by adding translation name to lines:
$this->avatar_ratings = array( /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'G' => __( 'G — Suitable for all audiences', ), /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above', ), /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'R' => __( 'R — Intended for adult audiences above 17', ), /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'X' => __( 'X — Even more mature than above', ), );
After that, my website started to work:
'G' => __( 'G — Suitable for all audiences', 'simple-local-avatars'),
Any idea why this throw an error?
Will you fix it in next update?
What’s more, error 500 was only on one from two languages on my page using wpml (second language works as usual)
Best regards, Patrick.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Php Error after update’ is closed to new replies.