Avactis 2.1.1 TinyMCE FileManager error

From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search


For Avactis 2.1.1

Question: We are experiencing the following errors when attempting to use the image manager function in Tiny MCE:


Notice: Undefined variable: session in /#######/public_html/avactis-system/admin/tiny_mce_3.4.2/plugins/ajaxfilemanager/ajaxfilemanager.php on line 26


Solution:

avactis-system/admin/tiny_mce_3.4.2/plugins/ajaxfilemanager/inc/config.afm.php

@@ -26,7 +26,6 @@
         require_once 'session_db.php';
         $__session_db = new SessionDBHandler($cfg, $db_cfg, $link);
         __set_session_db_handler();
-         $session = $__session_db;
     }
    session_name("AZSESSID");
@@ -85,6 +84,8 @@
    require_once(DIR_AJAX_LANGS . CONFIG_LANG_DEFAULT . ".php");
    require_once(DIR_AJAX_INC . "function.base.php");    
+    require_once(dirname(__FILE__) .  DIRECTORY_SEPARATOR . "class.session.php");
+    $session = new Session();
    addNoCacheHeaders();
    //URL Declartions

If you find it difficulty in making these changes, Contact Avactis Support team.