Reply to thread

I am not sure if there is a workaround for this but ideally it should be stated in the documentation.


I am using Windows as development environment. When I try to upgrade/rebuild master data, XF is not able to import all the templates, it will stop at the 29th template.


It fails in this part:

[PHP]$dw->bulkSet(array(

                    'style_id' => 0,

                    'title' => $templateName,

                    'template' => XenForo_Helper_DevelopmentXml::processSimpleXmlCdata($template),

                    'addon_id' => $addOnId,

                    'version_id' => (int)$template['version_id'],

                    'version_string' => (string)$template['version_string']

                ));[/PHP]

Apache will be crashed and automatically restarted.



I searched the web and found the issue is because of the "long regular expressions in PHP" which is because of this part:

[PHP]public static function processSimpleXmlCdata($cdata)

    {

        return str_replace(']-]->', ']]>', strval($cdata));

    }[/PHP]


This could be solved by increasing ThreadStackSize by adding following line to httpd.conf

[CODE]

<IfModule mpm_winnt_module>

   ThreadStackSize 8000000

</IfModule>[/CODE]


There is also a bug report regarding this Apache exit code: PHP :: Bug #29107 :: Parent: child process exited with status 3221225725


If there is no workaround, I hope it could be mentioned in the Documentation of XF.


Back
Top Bottom