Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9064199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:11:20+00:00 2026-06-16T16:11:20+00:00

I have an availability calendar that I’m trying to POST to my database using

  • 0

I have an availability calendar that I’m trying to POST to my database using Laravel. When i dump out my POST I get this..

string(1440) "s:1430:"2012-11-06;;1;;888,2012-11-07;;1;;888,2012-11-08;;
1;;888,2012-11-09;;1;;888,2012-11-10;;1;;888,2012-11-11;;1;;888,2012-11-12;;
1;;888,2012-11 13;;1;;888,2012-11-14;;1;;888,2012-11-15;;1;;888,2012-11-16;;1;;
888,2012-11-17;;1;;888,2012-11-18;;1;;888,2012-11-19;;1;;888,2012-11-20;;1;;888,
2012-11-21;;1;;888,2012-11-22;;1;;888,2012-11-23;;1;;888,2012-11-24;;1;;888,
2012-11-25;;1;;888,2012-11-26;;1;;888,2012-11-27;;1;;888,2012-11-28;;2;;0,array(1)
{["availability"]=>string(973) "s:964:"2012-11-05;;1;;888,2012-11-29;;1;;
888,2012-11-30;;1;;888,array(1) {["availability"]=>string(12) "availability"}

<html><h2>Unhandled Exception</h2><h3>Message:</h3><pre>Error rendering view:   
[layouts.admin] Undefined variable: title</pre><h3>Location:</h3>               
<pre>/Users/corymjacik/Sites/shipwatch_v2.1/storage/views/33f72cb6519c7f146dc8d6af4b948300 on line 5</pre><h3>Stack Trace:</h3>
<pre>#0 /Users/corymjacik/Sites/shipwatch_v2.1/laravel/laravel.php(40): 
Laravel\Error::native(8";"}  
<html><h2>Unhandled Exception</h2><h3>Message:</h3> 
<pre>Error rendering view: [layouts.admin]Undefined variable: title</pre> 
<h3>Location:</h3>
              <pre>/Users/corymjacik/Sites/shipwatch_v2.1/storage/views/33f72cb6519c7f146dc8d6af4b948300 
on line 5</pre><h3>Stack Trace:</h3> <pre>#0 /Users/corymjacik/Sites/shipwatch_v2.1/laravel/laravel.php(40): 
Laravel\Error::native(8";"

What might be causing this error, and why is it being included in my POST to the database? Below is my controller code. Everything works just fine, like this. I’m able to post that string to the database (which I turned into a string from an array using serialize()) and I’m also able to get it from the database and it displays on the frontend just fine. The errors don’t seem to make a difference, but I just feel like I’m doing something slightly wrong.

public function post_availability_save()
  {
$availability = serialize(Input::get('dop_booking_calendar'));
//var_dump($availability);die;

$id = Auth::user()->id;

Availability::update($id, array(
  'user_id' => Auth::user()->id,
  'availability' => $availability
  ));
return Redirect::to('admin');
}

  public function get_availability_load()
  {
$id = Auth::user()->id;

$availability = array(
  'availability' => Availability::find($id)->availability
);

var_dump($availability);

}

EDIT
Messing around with it a bit more, it is also dumping out the beginning of my html layout…
Anyone know what causes this? I’ll dig a bit deeper.
EDIT 11/13/12

//*This is what ends up in my database (Type:TEXT) //
,2012-11-13;;1;;1,2012-11-14;;1;;1,2012-11-15;;1;;1,2012-11-16;;1;;1,2012-11- 
17;;1;;1,2012-11-18;;1;;1,2012-11-19;;1;;1,2012-11-20;;1;;1,2012-11-21;;1;;1,2012
-11-22;;1;;1,2012-11-23;;1;;1,2012-11-24;;1;;1,2012-11-25;;1;;1,2012-11-26;;1;;1,
2012-11-27;;1;;1,2012-11-28;;1;;1,Array
(
    [availability] => 1
)
<html><h2>Unhandled Exception</h2>
<h3>Message:</h3>
<pre>Error rendering view: [layouts.admin] Undefined variable: title</pre>
<h3>Location:</h3>
             <pre>/Users/cory/Sites/shipwatchpoint_v2.1/storage/views/e2b30637bfaa9d210e31baf35870d230 on line 5</pre>
<h3>Stack Trace:</h3>
<pre>#0 /Users/corymjacik/Sites/shipwatchpoint_v2.1/laravel/laravel.php(40): Laravel\Error::native(8

// *layouts.admin.blade.php //
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{{ $title }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- CSS -->
    {{ HTML::style('css/bootstrap.css') }}
    {{ HTML::style('css/jquery.dop.BookingCalendar.css') }}
    {{ HTML::style('css/app.css') }}

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="/img/ico/favicon.ico">

  </head>
  <body>

    <div class="container-fluid">
      {{ $content }}
    </div>

    <!-- JS -->
    <!-- Placed at the end of the document so the pages load faster -->
    {{ HTML::script('http://code.jquery.com/jquery-1.8.2.min.js') }}
    {{ HTML::script('js/bootstrap.js') }}
    {{ HTML::script('js/app.js') }}
    {{ HTML::script('js/jquery.dop.BookingCalendar.js') }}

  </body>
</html>

//*admin controller (public restful is set to true)//
public function get_index()
  {
    $id = Auth::user()->id;
    $unit = array(
      'unit' => Unit::find($id),
      'unit_admin' => Unit::find($id)->user,
      //'availability' => Availability::all() added this and it still showed errors
    );

    //var_dump($unit);die;

    $this->layout->title = 'Admin Profile';
    $this->layout->nest('content', 'admin.index', $unit);
  }

public function post_availability_save()
  {
    //$availability = serialize(Input::get('dop_booking_calendar'));
    $availability = Input::get('dop_booking_calendar');
    //var_dump($availability);die;

    $id = Auth::user()->id;

    Availability::update($id, array(
      'user_id' => Auth::user()->id,
      'availability' => $availability
      ));
    return Redirect::to('admin');
  }

  public function get_availability_load()
  {
    $id = Auth::user()->id;

    $availability = array(
      'availability' => Availability::find($id)->availability
    );

    var_dump($availability);

  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:11:21+00:00Added an answer on June 16, 2026 at 4:11 pm

    Alright. So, I finally figured it out. The error was being sent through in the post because I was var_dump’ing the results that we’re being selected. I fixed it by ‘die’ and ‘json_encode’.
    Thanks to everyone that helped!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Supposing I have this sqlite database structure: ID PRODUCT_NAME AVAILABILITY 1 foo 0 2
I have this data access method that return the availability of a lot in
I'm building a simple availability calendar with PHP and MySQL. I have a table
I have a CustomValidator that is being used to check username availability, but it
In my application I have created a calendar with Gridview and in that Gridview
Im trying to implement a hot sparing method for availability, I have it in
I have a table that holds availability status for workers. Here is the structure:
I have an application in witch I am trying to set a internationalization availability.
I have this XML file, <tour title=Bavaria, Austrian, and the Alps baseCost=1799.99> <availability start=2011/03/25
Using CakePHP 1.3 we have a booking system for hotel rooms. A check-availability form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.