[wp-trac] [WordPress Trac] #37444: Missing category.php produces 'Strict Standards: Only variables should be passed by reference' when falling back on archive.php

WordPress Trac noreply at wordpress.org
Sat Jul 23 13:54:38 UTC 2016


#37444: Missing category.php produces 'Strict Standards: Only variables should be
passed by reference' when falling back on archive.php
--------------------------+------------------------------
 Reporter:  crs1138       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  4.5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by achbed):

 Replying to [comment:1 SergeyBiryukov]:
 > Hi @crs1138, welcome to Trac!
 >
 > > Strict Standards: Only variables should be passed by reference in
 /xxx/xxx/wp-includes/theme-compat/category.php(29) : runtime-created
 function on line 1
 >
 > There is no such file in WordPress core, see [source:tags/4.5.3/src/wp-
 includes/theme-compat].
 >
 > This seems like a hacked install. Could you share the contents of that
 file?

 I thought that at first as well, but I do see a potential issue in
 `get_archive_template()` that could cause this.  It also fits the area
 where the problem is being seen (fallback to archive template).

 @crs1138 can you see if this patch fixes the issue?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37444#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list