Skip to main content

Posts

Showing posts with the label Joomla 2.5

How to retrieve data from another table while retrieving data from a table in loadFormData function in Joomla 2.5

I have to show data from two different tables. Therefore I had to change 'loadFormData' function to satisfy that. Current implementation was as follows. /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormData()  { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_speakee.edit.batchofcard.data', array()); if (empty($data))  { $data = $this->getItem();                         }                          return $data; } Then I changed it to get data from another table called 'Discount' by calling table of 'Discount' and got table properties by primary key.  /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormDat

Joomla 2.5 :: Redirects Error 500 (Internal server Error) page when loging with invalid username and password

I faced this issue when migrating my local joomla 2.5 installation to test server. It works fine when logging with correct username and passwords. Then I have checked in error_log and found issue. PHP Warning:  fopen(path_to_log/logs/error.php): failed to open stream: No such file or directory in  new_server_path/libraries/joomla/log/loggers/formattedtext.php on line 248 Then I have checked in back end and changed path to log folder as follows.