test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • marceltj Friend
    #180791

    Get the following errors on Job Board admin panel After upgrading to v1.02

    Warning: Creating default object from empty value in /homepages/23/d386917418/htdocs/pms/administrator/components/com_jajobboard/models/jajobboard.php on line 175

    Warning: Creating default object from empty value in /homepages/23/d386917418/htdocs/pms/administrator/components/com_jajobboard/models/jajobboard.php on line 177

    Warning: Creating default object from empty value in /homepages/23/d386917418/htdocs/pms/administrator/components/com_jajobboard/models/jajobboard.php on line 179

    Warning: Creating default object from empty value in /homepages/23/d386917418/htdocs/pms/administrator/components/com_jajobboard/models/jajobboard.php on line 181

    Warning: Creating default object from empty value in /homepages/23/d386917418/htdocs/pms/administrator/components/com_jajobboard/models/jajobboard.php on line 183

    Thanh Nguyen Viet Friend
    #467475

    Hello marceltj,

    To resolve this issue, please open the file:
    administrator/components/com_jajobboard/models/jajobboard.php

    and then, go to the line 175, replace the code snippet:
    [PHP]
    $arr_option[0]->value = ”;
    $arr_option[0]->text = ‘——-‘ . JText::_(‘SELECT_SEARCH_TYPE’) . ‘——-‘;
    $arr_option[1]->value = ‘jajobs’;
    $arr_option[1]->text = JText::_(‘JOBS’);
    $arr_option[2]->value = ‘jaemployers’;
    $arr_option[2]->text = JText::_(‘EMPLOYERS’);
    $arr_option[3]->value = ‘jacandidates’;
    $arr_option[3]->text = JText::_(‘JOB_SEEKERS’);
    $arr_option[4]->value = ‘jatransactions’;
    $arr_option[4]->text = JText::_(‘TRANSACTIONS’);
    $obj_Search_Type = JHTML::_(‘select.genericlist’, $arr_option, ‘view’, ‘class=”inputbox” size=”1″‘, ‘value’, ‘text’, ”);[/PHP]

    with this one:
    [PHP]

    $arr_option[0] = new stdClass();
    $arr_option[0]->value = ”;
    $arr_option[0]->text = ‘——-‘ . JText::_(‘SELECT_SEARCH_TYPE’) . ‘——-‘;
    $arr_option[1] = new stdClass();
    $arr_option[1]->value = ‘jajobs’;
    $arr_option[1]->text = JText::_(‘JOBS’);
    $arr_option[2] = new stdClass();
    $arr_option[2]->value = ‘jaemployers’;
    $arr_option[2]->text = JText::_(‘EMPLOYERS’);
    $arr_option[3] = new stdClass();
    $arr_option[3]->value = ‘jacandidates’;
    $arr_option[3]->text = JText::_(‘JOB_SEEKERS’);
    $arr_option[4] = new stdClass();
    $arr_option[4]->value = ‘jatransactions’;
    $arr_option[4]->text = JText::_(‘TRANSACTIONS’);
    $obj_Search_Type = JHTML::_(‘select.genericlist’, $arr_option, ‘view’, ‘class=”inputbox” size=”1″‘, ‘value’, ‘text’, ”);[/PHP]

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 12 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum