Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
clj83
Forum Members
Forum Members
Posts: 195
Joined: Tue Jul 07, 2009 4:09 pm

Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Post by clj83 »

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


----------------------------------------------
[MaGuS]
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 23, 2008 9:47 am

Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Post by [MaGuS] »

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()

Code: Select all

require_once(dirname(__FILE__).'/class.CGFileUploadHandler.php');
under the same ...tools.php. U will find it, I am sure.

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;
  }
somewhere next to function AddImageDir() for example

4., insert this also:

Code: Select all

  function mkdirr ($pathname, $mode = 0777)
  {
    return cge_dir::mkdirr($pathname,$mode);
  }
somewhere at line 1370 next to is_alias() function

I think that was all... After this it was working again...


Bye
Lukevdp
Forum Members
Forum Members
Posts: 42
Joined: Wed Dec 03, 2008 1:54 am

Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Post by Lukevdp »

I can confirm this works. Thanks MaGuS
awe007
Forum Members
Forum Members
Posts: 37
Joined: Mon Mar 29, 2010 2:33 pm

Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Post by awe007 »

Please give here correct listong of CGExtension.module.php or PLEASE send it to nospan@mail.ru

I can't fix this error :(
[MaGuS]
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 23, 2008 9:47 am

Re: Installing Products 2.5.1 Through Module Manager With CMSMS 1.7

Post by [MaGuS] »

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.]

Post Reply

Return to “Modules/Add-Ons”