Hi,
I am trying to install Products 2.5.1 through the module manager with CMSMS 1.7. All I get is a message that says "Error!" there are no further details given.
I then tried to install the module using the Products 2.5.1 xml file from this website. That installed the module successfully but I immediately got an error when trying to add a test product with a custom image field. The error was,
Fatal error: Call to undefined method Products::mkdirr() in /home/chri1993/public_html/modules/Products/functions.admin_tools.php on line 174
I checked line 174 in the functions.admin_tools.php file but didn't notice anything I recognised as an error.
I will file a bug report but wondered if anyone had experienced this problem before and if a solution is available.
Thanks
Chris
----------------------------------------------
Cms Version: 1.7
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.2
* MenuManager: 1.6.2
* ModuleManager: 1.3.3
* News: 2.10.4
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.2
* ThemeManager: 1.1.1
* TinyMCE: 2.6.5
* CGExtensions: 1.18
* CGSimpleSmarty: 1.4.3
* JQueryTools: 1.0.3
* FrontEndUsers: 1.6.8
* SelfRegistration: 1.2.5
* CustomContent: 1.5.3
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 2000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.12
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* memory_limit: 64M
* max_execution_time: 30
* safe_mode: Off (False)
* session_save_path: /tmp (1777)
* session_use_cookies: On (True)
Server Information:
* Server Api: cgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.89
----------------------------------------------
Installing Products 2.5.1 Through Module Manager With CMSMS 1.7
Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7
I made the same mistake 
The main problem is not in Products module but in CGExtensions module.
The way I solved it for myself to get it work:
1., copy the class.CGFileUploadHandler.php from a previous version or backup to ./CGExtensions dir.
2., insert into CGExtensions.module.php ( approx line 379) in _load_main() under the same ...tools.php. U will find it, I am sure.
3., insert into the same file the next:
somewhere next to function AddImageDir() for example
4., insert this also:
somewhere at line 1370 next to is_alias() function
I think that was all... After this it was working again...
Bye

The main problem is not in Products module but in CGExtensions module.
The way I solved it for myself to get it work:
1., copy the class.CGFileUploadHandler.php from a previous version or backup to ./CGExtensions dir.
2., insert into CGExtensions.module.php ( approx line 379) in _load_main()
Code: Select all
require_once(dirname(__FILE__).'/class.CGFileUploadHandler.php');
3., insert into the same file the next:
Code: Select all
function &GetFileUploadHandler($id,$destdir)
{
$this->_load_main();
$handler = new CGFileUploadHandler($id,$destdir);
return $handler;
}
4., insert this also:
Code: Select all
function mkdirr ($pathname, $mode = 0777)
{
return cge_dir::mkdirr($pathname,$mode);
}
I think that was all... After this it was working again...
Bye
Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7
I can confirm this works. Thanks MaGuS
Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7
Please give here correct listong of CGExtension.module.php or PLEASE send it to nospan@mail.ru
I can't fix this error
I can't fix this error

Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7
See the attached files. Hope it will help. Of course they are php files.
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
-
[The extension txt has been deactivated and can no longer be displayed.]