Jump to content

qazwsx

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

qazwsx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It turns out, the coder had it trying to find JSON.php when it wasn't meant to be in capitals, just lower case.
  2. I changed it around a little but still can't get it to work. If you need more code just PM me and we will post the solution here if we find it.
  3. Ok, we're getting close now. This time it's telling me: Notice: Undefined property: Zend_Db_Table_Rowset::$application_ride_id in /home/james1/application/controllers/AccountController.php on line 112 Notice: Trying to get property of non-object in /home/james1/application/controllers/AccountController.php on line 143 Notice: Trying to get property of non-object in /home/james1/application/controllers/AccountController.php on line 143 == Line 143 = "die($ride->ride_spaces_available.' == '.$ride->ride_spaces_taken);" Line 112 = "elseif (!($ride = $rides->find($application->application_ride_id))) { $this->_helper->getHelper('FlashMessenger')->addMessage('Could not link ride', 'failure');"
  4. That is spitting out this: Parse error: syntax error, unexpected T_EXIT, expecting T_CASE or T_DEFAULT or '}' in /home/james1/application/controllers/AccountController.php on line 140 Note: Line 140 = "die(ride->ride_spaces_available.' == '.$ride->ride_spaces_taken);" Thanks
  5. Hey guys, here's the error today! switch($this->_getParam('application-action')) { case 'approve': if ($ride->ride_spaces_available == $ride->ride_spaces_taken) { $this->_helper->getHelper('FlashMessenger')->addMessage('All available spaces have been taken. If you want to approve this user, you must remove another user.', 'notice'); } else { // Make sure the ride isn't full $ride->ride_spaces_taken++; $ride->save(); $application->current()->application_changed = time(); $application->current()->application_status = Application::APPLICATION_STATUS_APPROVED; $user = $users->find($application->current()->application_user_id)->current(); $this->view->ride = $ride; $this->view->user = $user; What happens is, the ride_spaces_avaliable equals 2 and the ride_spaces_taken equals 0, yet it is still giving me the "All available spaces have been taken. If you want to approve this user, you must remove another user" error, even though they are no way equal. It is obviously taking the values from mysql, which I have checked and equal 2 and 0 respectively. Btw, I am using Zend Framework Any help would be greatly appreciated
  6. Hey, My site now only has one error, it's a very important page though! This is what I'm getting: Message: At least one error occurred including "Zend/JSON.php"; see includeErrors property File: /home/james1/library/Zend/Loader.php Line: 300 _SESSION: Array ( [Zend_Auth] => Array ( [storage] => Array ( [user_admin] => 1 [user_id] => 3 [user_username] => ********* [user_email] => ******* [user_first_name] => ****** ) ) [Core_Validate] => Array ( [data] => Array ( [from_number] => 323 [from_street] => dfsf [from_suburb] => sadasdasd [from_postcode] => 1111 [from_city] => sdasdasd [to_number] => 22 [to_street] => sdasd [to_suburb] => asdasd [to_postcode] => 2222 [to_city] => asdadasd [schedule_spaces] => 2 [ride_distance] => 2121 [schedule_type] => one_off [schedule_oneoff_day] => 12 [schedule_oneoff_month] => 2 [schedule_oneoff_year] => 2009 [schedule_oneoff_hour] => 00 [schedule_oneoff_minute] => 00 [recurrance_type] => [recurrance_daily_type] => [recurrance_every_x_days_value] => [recurrance_weekly_monday] => 0 [recurrance_weekly_tuesday] => 0 [recurrance_weekly_wednesday] => 0 [recurrance_weekly_thursday] => 0 [recurrance_weekly_friday] => 0 [recurrance_weekly_saturday] => 0 [recurrance_weekly_sunday] => 0 [recurrance_monthly_value] => [recurrance_hour] => 00 [recurrance_minute] => 00 [recurrance_start_day] => 12 [recurrance_start_month] => 2 [recurrance_start_year] => 2009 [recurrance_end_day] => 12 [recurrance_end_month] => 2 [recurrance_end_year] => 2009 [waypoints_waypoints] => [submit] => Add Ride [nillzero] => 0 ) ) [__ZF] => Array ( [Core_Validate] => Array ( [ENNH] => 1 ) ) ) Params: Array ( [controller] => rides [action] => view [id] => 162 [module] => default ) I am using Zend Framework and Zend Core. Any help would be greatly appreciated
  7. Ok guys, I just managed to get the site going from reading all the threads on this forum! Thanks heaps
  8. I don't really want to give out Cpanel information publicly though Could post the solution when solved?
  9. Hey guys, I recently had a script made but the creator has "disappeared" and I can't get it working on the server. I believe the whole script is there but there are small changes that need to be made to make it work. Coded in: Php Msql Zend Framework If you believe you can help please PM me with your MSN so we can have a chat Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.