Error in package web directory - Not save listing, through panel control and frontpage

Discussion in 'Subrion CMS Packages Discussions' started by olairmarcos, Jan 6, 2014.

  1. olairmarcos

    olairmarcos Member

    Subrion3.1.2
    Package Web directory : 3.1.0
    Not saved in the web directory listing into sub-categories, through the control panel and also the front of the site. Shows white screen.
    In debug we have the following error:
    ...................................................................................................................................................................................
    Notice: Undefined property: iaCore::$iaCore
    on line 194 in file packages/directory/admin/listings.php

    Backtrace [5]
    Array ( [0] => in class iaCore::_executeModule()
    on line [129] in file [includes/classes/ia.core.php]
    [1] => in function require("/home/subrion/www/312/packages/directory/admin/listings.php")
    on line [413] in file [includes/classes/ia.core.php] [2] => in class Smarty::mutingErrorHandler(8, "Undefined property: iaCore::$iaCore", "/home/subrion/www/312/packages/directory/admin/listings.php", 194, array())
    on line [194] in file [packages/directory/admin/listings.php] [3] => in function call_user_func(array(), 8, "Undefined property: iaCore::$iaCore", "/home/subrion/www/312/packages/directory/admin/listings.php", 194, array())
    on line [1433] in file [includes/smarty/Smarty.class.php] [4] => in class iaSystem::error(8, "Undefined property: iaCore::$iaCore", "/home/subrion/www/312/packages/directory/admin/listings.php", 194, array()) )

    Backtrace [4]
    Parsing Error: Call to a member function get() on a non-object
    on line 194 in file packages/directory/admin/listings.php
    ..................................................................................................................................................................................

    Thanks, good job.
  2. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hello @olairmarcos !

    Thank you for this report. Here are steps to fix this:

    1. Open up listings.php file (root/packages/directory/admin/)
    2. Find this code:
    Code (Text):
    if ($this->iaCore->get('listing_crossed', false))
    And change it to:
    Code (Text):
    if ($iaCore->get('listing_crossed', false))
    3. Open up manage.php file (root/packages/directory/)
    4. Repeat step 2 for this file.

    This should fix the problem. We have also applied this fix for next version of Web Directory Package.

    Thanks!

Share This Page