sonnb
Well-known member
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:
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:
This could be solved by increasing ThreadStackSize by adding following line to httpd.conf
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.
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']
));
[Wed Sep 02 15:42:10.282221 2015] [mpm_winnt:notice] [pid 7740:tid 628] AH00428: Parent: child process 5836 exited with status 3221225725 -- Restarting.
[Wed Sep 02 15:42:10.676484 2015] [mpm_winnt:notice] [pid 7740:tid 628] AH00455: Apache/2.4.7 (Win32) OpenSSL/0.9.8y PHP/5.4.22 configured -- resuming normal operations
[Wed Sep 02 15:42:10.676484 2015] [mpm_winnt:notice] [pid 7740:tid 628] AH00456: Apache Lounge VC10 Server built: Nov 26 2013 16:07:35
[Wed Sep 02 15:42:10.676484 2015] [core:notice] [pid 7740:tid 628] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Wed Sep 02 15:42:10.678485 2015] [mpm_winnt:notice] [pid 7740:tid 628] AH00418: Parent: Created child process 9992
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/xampp/apache/conf/extra/httpd-vhosts.conf:19
[Wed Sep 02 15:42:11.595243 2015] [mpm_winnt:notice] [pid 9992:tid 552] AH00354: Child: Starting 150 worker threads.
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));
}
This could be solved by increasing ThreadStackSize by adding following line to httpd.conf
Code:
<IfModule mpm_winnt_module>
ThreadStackSize 8000000
</IfModule>
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.