Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
IPBWI.com Matthias Reuter Posted August 9, 2016 Posted August 9, 2016 When trying to load ipsRegistry class and initiating it with the following code within an application's API file define( 'IPB_THIS_SCRIPT', 'public' ); require_once( realpath(dirname(__FILE__) . '/../../../').'/initdata.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); \ipsRegistry::init(); I get the following error: file_put_contents(/var/www-test/ipb4/cache/skin_cache/system/emailWrapper.php): failed to open stream: No such file or directory backtrace log: #0 [internal function]: IPS\IPS::errorHandler(2, 'file_put_conten...', '/var/www-test/i...', 135, Array) #1 /var/www-test/ipb4/admin/sources/classes/output/systemTemplates.php(135): file_put_contents('/var/www-test/i...', '<?php\n\nclass em...') #2 /var/www-test/ipb4/admin/sources/classes/output/systemTemplates.php(196): systemTemplates->write('emailWrapper', Array, '<!DOCTYPE html>...') #3 /var/www-test/ipb4/admin/sources/classes/output/systemTemplates.php(74): systemTemplates->writeDefaults() #4 /var/www-test/ipb4/ips_kernel/classDb.php(1851): systemTemplates->getClass('ipsDriverError') #5 /var/www-test/ipb4/ips_kernel/classDbMysqliClient.php(245): dbMain->throwFatalError('mySQL query err...') #6 /var/www-test/ipb4/ips_kernel/classDb.php(1125): db_driver_mysql->query('SELECT * FROM p...') #7 /var/www-test/ipb4/admin/sources/base/ipsRegistry.php(3133): dbMain->execute() #8 /var/www-test/ipb4/admin/sources/base/ipsRegistry.php(3049): ips_CacheRegistry::_loadCaches(Array) #9 /var/www-test/ipb4/admin/sources/base/ipsRegistry.php(2843): ips_CacheRegistry->init() #10 /var/www-test/ipb4/admin/sources/base/ipsRegistry.php(580): ips_CacheRegistry::instance() #11 /var/www-test/ipb4/applications/ipbwi/api/members.php(200): ipsRegistry::init() #12 [internal function]: IPS\ipbwi\api\_members->POSTitem_updatePhotoByURL('30340') #13 /var/www-test/ipb4/system/Api/Controller.php(73): call_user_func_array(Array, Array) #14 /var/www-test/ipb4/system/Dispatcher/Api.php(187): IPS\Api\_Controller->execute(Array, true) #15 /var/www-test/ipb4/api/index.php(13): IPS\Dispatcher\_Api->run() #16 {main} any idea?
HeadStand Posted August 10, 2016 Posted August 10, 2016 Is that... a combination of v3 and v4 classes?
Adriano Faria Posted August 10, 2016 Posted August 10, 2016 For IPS4, you just to load the init.php: require_once( 'init.php' );
HeadStand Posted August 10, 2016 Posted August 10, 2016 But why is ipsRegistry there in the first place?
Marcher Technologies Posted August 10, 2016 Posted August 10, 2016 That stack trace. Dear....., Left nearly speechless. Please clean out the 3.x files and use 4.x code if it's a 4.x install. if it's not I have no clue HOW you've managed that stack trace. 5 hours ago, HeadStand said: Is that... a combination of v3 and v4 classes? By the stack trace, yes. 4 hours ago, HeadStand said: But why is ipsRegistry there in the first place? This ^
IPBWI.com Matthias Reuter Posted August 11, 2016 Author Posted August 11, 2016 worked on a somehow not cleaned up upgraded IPB 4 version with some old files from 3.4... big thanks for your help here
Recommended Posts
Archived
This topic is now archived and is closed to further replies.