I try to run scripts that used to work with older versions of toolkit/cw, now with version 1.7.0 I get this:
Notice: Use of undefined constant CW_PERSISTENT - assumed 'CW_PERSISTENT' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 517
Notice: Use of undefined constant I5_OPTIONS_CODEPAGEFILE - assumed 'I5_OPTIONS_CODEPAGEFILE' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 162
Notice: Use of undefined constant I5_OPTIONS_RMTCCSID - assumed 'I5_OPTIONS_RMTCCSID' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 171
Notice: Use of undefined constant I5_OPTIONS_INITLIBL - assumed 'I5_OPTIONS_INITLIBL' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 181
Notice: Use of undefined constant CW_PERSISTENT - assumed 'CW_PERSISTENT' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 204
Notice: Use of undefined constant CW_PERSISTENT - assumed 'CW_PERSISTENT' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 205
Notice: Use of undefined constant CW_PERSISTENT - assumed 'CW_PERSISTENT' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 209
Notice: Use of undefined constant I5_OPTIONS_PRIVATE_CONNECTION - assumed 'I5_OPTIONS_PRIVATE_CONNECTION' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 216
Notice: Use of undefined constant I5_OPTIONS_IDLE_TIMEOUT - assumed 'I5_OPTIONS_IDLE_TIMEOUT' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 254
Notice: Use of undefined constant I5_OPTIONS_JOBNAME - assumed 'I5_OPTIONS_JOBNAME' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 260
Notice: Use of undefined constant CW_EXISTING_TRANSPORT_CONN - assumed 'CW_EXISTING_TRANSPORT_CONN' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 268
Notice: Use of undefined constant CW_TRANSPORT_TYPE - assumed 'CW_TRANSPORT_TYPE' in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 280
Fatal error: Call to undefined function getConfigValue() in /usr/local/zendsvr6/share/ToolkitAPI/CW/cw.php on line 280
I can get rid of undefined constants if I add include('CW/cwconstants.php'); somewhere in the scripts, but why do I need to do this?
Also this doesn't get rid of the last line, I haven't figured out yet how to get rid of that fatal error.
Edit:
Ok, I guess I needed to add this line:
require_once('CW/cwclasses.php');
which was previously not needed, that's fine, now I have a new problem though.
Toolkit autoloader seems to be messing with my ZF1 Bootstrap.
Fatal error: Uncaught exception 'Exception' with message 'File Not Found' in /usr/local/zendsvr6/share/ToolkitAPI/autoload.php:50
Stack trace:
#0 [internal function]: {closure}('modifiedFrontCo...')
#1 [internal function]: spl_autoload_call('modifiedFrontCo...')
#2 /IASP33/www/zendcore/htdocs/sq/_shared/library/Zend/Application/Bootstrap/BootstrapAbstract.php(355): class_exists('modifiedFrontCo...')
#3 /IASP33/www/zendcore/htdocs/sq/_shared/library/Zend/Application/Bootstrap/BootstrapAbstract.php(382): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResource('modifiedFrontCo...')
#4 /IASP33/www/zendcore/htdocs/sq/_shared/library/Zend/Application/Bootstrap/BootstrapAbstract.php(394): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResources()
#5 /IASP33/www/zendcore/htdocs/sq/_shared/library/Zend/Application/Bootstrap/BootstrapAbstract.php(625): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResourceNames()
#6 /IASP33/www/zendcore/htdocs/sq/_shared/library/Zend/Application/Bootstrap/BootstrapAbstract in <b>/usr/local/zendsvr6/share/ToolkitAPI/autoload.php</b> on line <b>50</b><br />
-Timo
Last edited: Sep 21, 2016