[Solar-talk] Error with Solar 0.28 and Text_Wiki 0.1.0

Andreas Ravnestad andreas.ravnestad at gmail.com
Thu Aug 23 08:18:16 CDT 2007


Rodrigo Moraes wrote:
> On 8/22/07, Andreas Ravnestad wrote:
>   
>> Now, Solar is looking for a file "Text\Wiki\Parse\Prefilter.php" which
>> doesn't exist. However, there is a class named
>> Text_Wiki_Parse_Prefilter, but it resides in
>> "Text\Wiki\Parse\Default\Prefilter.php" (difference being the Default
>> folder). As far as I can tell, this used to work with Solar 0.27. Any
>> ideas how to fix?
>>     
>
> Move it so Solar will map the class name to the directory structure.
>
> Solar 0.27 (or before) could never map Text_Wiki_Parse_Prefilter to
> Text\Wiki\Parse\Default\Prefilter.php, so the problem must be
> somewhere else. Haven't you upgraded the Pear packages too?
>
> -- rodrigo
>   

Ok, it seems this is a problem with the spl_autoload feature, as pointed 
out by Anttih on IRC. Manually including the class files fixes the error 
above, but the Mediawiki formatting isn't process (so titles looks like 
==this==). Renaming the classes has the same effect as manual include. 
Moving the class files has the same effect as manual include.

However, Text_Wiki works fine with vanilla PHP (no Solar), as well as 
with PHP 0.27 and earlier.

-Andreas


More information about the Solar-talk mailing list