I'm seeing this php notice on occasion when running the phpbb integration on windows machines:
Quote:
[phpBB Debug] PHP Notice: in file C:/htdocs/gallery2/modules/core/classes/GalleryPlatform.class on line 582: mkdir() [function.mkdir]: File exists
This is the debug output:
Quote:
file_exists(C:\htdocs\gallery2\g2data\cache\module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator getParameter cookie.path for core plugin file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) (mysqli): SET NAMES "utf8" (mysqli): SELECT g2_PluginParameterMap.g_itemId, g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'module' AND g2_PluginParameterMap.g_pluginId = 'core' AND g2_PluginParameterMap.g_itemId = 0 file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) getParameter permissions.directory for core plugin file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) (mysqli): SELECT g2_PluginParameterMap.g_itemId, g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'module' AND g2_PluginParameterMap.g_pluginId = 'core' AND g2_PluginParameterMap.g_itemId = 0 file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core) file_exists(C:\htdocs\gallery2\g2data\cache\module) is_dir(C:\htdocs\gallery2\g2data\cache\module) getParameter permissions.file for core plugin file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) (mysqli): SELECT g2_PluginParameterMap.g_itemId, g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'module' AND g2_PluginParameterMap.g_pluginId = 'core' AND g2_PluginParameterMap.g_itemId = 0 file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core) file_exists(C:\htdocs\gallery2\g2data\cache\module) is_dir(C:\htdocs\gallery2\g2data\cache\module) mkdir(C:\htdocs\gallery2\g2data\cache\module/core, 755) mkdir(C:\htdocs\gallery2\g2data\cache\module/core/0, 755) mkdir(C:\htdocs\gallery2\g2data\cache\module/core/0/0, 755) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) is_dir(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) rename(C:\htdocs\gallery2\g2data\cache\module\core\0\0\0.i331.tmp, C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) getParameter permissions.directory for core plugin mkdir(C:\htdocs\gallery2\g2data\cache\module/core, 755) [phpBB Debug] PHP Notice: in file C:/htdocs/gallery2/modules/core/classes/GalleryPlatform.class on line 582: mkdir() [function.mkdir]: File exists
file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) is_dir(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) unlink(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) rename(C:\htdocs\gallery2\g2data\cache\module\core\0\0\0.i332.tmp, C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) is_dir(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0) is_dir(C:\htdocs\gallery2\g2data\cache\module/core/0/0) file_exists(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) unlink(C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) rename(C:\htdocs\gallery2\g2data\cache\module\core\0\0\0.i333.tmp, C:\htdocs\gallery2\g2data\cache\module/core/0/0/0.inc) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin (mysqli): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1 (mysqli): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g_id='7561b0d737abfe6978e83aee9ca2ab78' [1224606755] can't guarantee 5 -- extending! file_exists(C:\htdocs\gallery2\g2data\cache\entity/0/0/6.inc) [1224606755] can't guarantee 300 -- extending! file_exists(C:\htdocs\gallery2\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) file_exists(C:\htdocs\gallery2\g2data\cache\module/archiveupload) file_exists(C:\htdocs\gallery2\g2data\cache\module/comment) file_exists(C:\htdocs\gallery2\g2data\cache\module/core) is_dir(C:\htdocs\gallery2\g2data\cache\module/core) recursiveRmdir(C:\htdocs\gallery2\g2data\cache\module/core) opendir(C:\htdocs\gallery2\g2data\cache\module/core\) readdir(Resource id #80) readdir(Resource id #80) readdir(Resource id #80) is_dir(C:\htdocs\gallery2\g2data\cache\module/core\0) recursiveRmdir(C:\htdocs\gallery2\g2data\cache\module/core\0) opendir(C:\htdocs\gallery2\g2data\cache\module/core\0\) readdir(Resource id #81) readdir(Resource id #81) readdir(Resource id #81) is_dir(C:\htdocs\gallery2\g2data\cache\module/core\0\0) recursiveRmdir(C:\htdocs\gallery2\g2data\cache\module/core\0\0) opendir(C:\htdocs\gallery2\g2data\cache\module/core\0\0\) readdir(Resource id #82) readdir(Resource id #82) readdir(Resource id #82) is_dir(C:\htdocs\gallery2\g2data\cache\module/core\0\0\0.inc) unlink(C:\htdocs\gallery2\g2data\cache\module/core\0\0\0.inc) readdir(Resource id #82) rmdir(C:\htdocs\gallery2\g2data\cache\module/core\0\0\) readdir(Resource id #81) rmdir(C:\htdocs\gallery2\g2data\cache\module/core\0\) readdir(Resource id #80) rmdir(C:\htdocs\gallery2\g2data\cache\module/core\) file_exists(C:\htdocs\gallery2\g2data\cache\module/exif) file_exists(C:\htdocs\gallery2\g2data\cache\module/ffmpeg) file_exists(C:\htdocs\gallery2\g2data\cache\module/gd) file_exists(C:\htdocs\gallery2\g2data\cache\module/icons) file_exists(C:\htdocs\gallery2\g2data\cache\module/imagemagick) file_exists(C:\htdocs\gallery2\g2data\cache\module/keyalbum) file_exists(C:\htdocs\gallery2\g2data\cache\module/netpbm) file_exists(C:\htdocs\gallery2\g2data\cache\module/rating) file_exists(C:\htdocs\gallery2\g2data\cache\module/rearrange) file_exists(C:\htdocs\gallery2\g2data\cache\module/rewrite) file_exists(C:\htdocs\gallery2\g2data\cache\module/search) file_exists(C:\htdocs\gallery2\g2data\cache\module/shutterfly) file_exists(C:\htdocs\gallery2\g2data\cache\module/slideshow) file_exists(C:\htdocs\gallery2\g2data\cache\theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) file_exists(C:\htdocs\gallery2\g2data\cache\theme/matrix) file_exists(C:\htdocs\gallery2\g2data\cache\theme/ajaxian) file_exists(C:\htdocs\gallery2\g2data\cache\theme/carbon) file_exists(C:\htdocs\gallery2\g2data\cache\theme/classic) file_exists(C:\htdocs\gallery2\g2data\cache\theme/floatrix) file_exists(C:\htdocs\gallery2\g2data\cache\theme/hybrid) file_exists(C:\htdocs\gallery2\g2data\cache\theme/siriux) file_exists(C:\htdocs\gallery2\g2data\cache\theme/slider) file_exists(C:\htdocs\gallery2\g2data\cache\entity/0/0/0.inc)
Suppressing the output of mkdir() fixes it, but no idea why it is occurring.
$results = @mkdir($path, $octalPerms);
Posts: 32509
and you don't get the issue when running g2 in standalone?
in this case the warning seems to be for mkdir(C:\htdocs\gallery2\g2data\cache\module/core), right? are you clearing your cache frequently or why should it try to create that folder?
a php error stack trace would be useful, to see where this mkdir call is coming from.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 32
I figured out what is causing it. I have a function in phpbb admin control panel to clear the cache of both phpbb and gallery when working with themes and templates to ensure integrated pages. The line in bold was causing the problem (not sure why I had it in there, but it didn't cause a problem before). Removing it solves the issue.
Sorry...my bad!
// clear phpBB cache $cache->purge(); // clear Gallery cache $this->_g2Init(); @GalleryDataCache::removeFromDisk(array('type' => 'module')); @GalleryDataCache::removeFromDisk(array('type' => 'theme')); $this->_g2Done();