| Проблемы с ship2pay.phpКак захожу в модуль доставка-оплата пишит такую вот фигню :(
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/shipping//ru.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/shipping//ru.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo() : Failed opening '/home/public_html/abc.ru/modules/shipping//ru.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/shipping//.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/shipping//.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 Warning: os_p2s_get_moduleinfo() : Failed opening '/home/public_html/abc.ru/modules/shipping//.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/payment//ru.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/payment//ru.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo() : Failed opening '/home/public_html/abc.ru/modules/payment//ru.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /home/public_html/abc.ru/admin/ship2pay.php on line 33
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/payment//.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/payment//.php) : failed to open stream: No such file or directory in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 Warning: os_p2s_get_moduleinfo() : Failed opening '/home/public_html/abc.ru/modules/payment//.php' for inclusion (include_path='.:/usr/local/php4/lib/php') in /home/public_html/abc.ru/admin/ship2pay.php on line 34
 
 
 проверяли на сервере наличие файла (/home/public_html/abc.ru/modules/shipping//ru.php)?
 а еще мну прет эта ошибка - Warning: os_p2s_get_moduleinfo(/home/public_html/abc.ru/modules/payment//.php)
 
 просто не активирован ни один модуль доставки, оплаты.
 странно. раньше работала проверка на активность модулей. и в случае елс ини один не активен - выдавало сообщение активируйте нужные модули.
 
 сейчас что то сломалось((
 
 Самому порадовали файлы :)
 Все супер, теперь работает :)
 
 блин как мне нарвятся такие ответы.
 работает? хорошо, а если еще у кого сломается? может поделитесь ответом как поправили, не перетирать же тему каждый раз отдельно =)
 
 если просто активировать по одному модулю оплаты, доставки - то ошибка пропадает.
 MSBrabus скорее всего так и сделал.
 
 
 вот решение:
 заменить :
 
 foreach($files as $file)
 {
 if (!empty($file))
 {
 $fr = substr($file, 0, strrpos($file, '.'));
 include (DIR_FS_DOCUMENT_ROOT.'modules/'.$module_type.'/'.$fr.'/'.$_SESSION.'.php');
 include (DIR_FS_DOCUMENT_ROOT.'modules/'.$module_type.'/'.$fr.'/'.$fr.'.php');
 $class = substr($file, 0, strrpos($file, '.'));
 if (os_class_exists($class))
 {
 $module = new $class;
 $installed_modules = $module->title;
 }
 }
 else
 {
 $GLOBALS = TEXT_EMPTY_ERROR;
 }
 }
 
 на:
 
 foreach($files as $file)
 {
 if (!empty($file))
 {
 $fr = substr($file, 0, strrpos($file, '.'));
 if (!empty($fr))
 {
 include (DIR_FS_DOCUMENT_ROOT.'modules/'.$module_type.'/'.$fr.'/'.$_SESSION.'.php');
 include (DIR_FS_DOCUMENT_ROOT.'modules/'.$module_type.'/'.$fr.'/'.$fr.'.php');
 $class = substr($file, 0, strrpos($file, '.'));
 if (os_class_exists($class))
 {
 $module = new $class;
 $installed_modules = $module->title;
 }
 }
 else
 {
 $GLOBALS = TEXT_EMPTY_ERROR;
 }
 }
 else
 {
 $GLOBALS = TEXT_EMPTY_ERROR;
 }
 }
 
 это в версии ShopOS 2.3.2 ? 
 да 
 Как ранее сказал Евгений:Просто активировал по одной позиции в доставке и оплате ;)
 
 Впринципе не критическая ошибка. но если раздражает - можно исправить как уже выше написал. 
 Источник 
 
 |