Title: Create Rooms
Last modified: September 18, 2017

---

# Create Rooms

 *  Resolved [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/)
 * The Room-admin page when click on create a new room doesn’t display anything.
 * Could you please help and guide me on what the problem is about.
    I can create
   everything except from rooms

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/create-rooms/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/create-rooms/page/2/?output_format=md)

 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9506430)
 * In the root folder of WordPress can you find the wp-config.php file and change
   this line:
 * define(‘WP_DEBUG’, false);
 * to:
 * define(‘WP_DEBUG’, false);
 * This turns on error reporting. If you can do this, can you try again and see 
   if there is an error?
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9506752)
 * Also, have you set up any branches?
 * What version are you using?
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9508521)
 * The error message is the following:
 * Parse error: syntax error, unexpected ‘}’ in /var/www/html/wp-content/plugins/
   book-a-room/templates/rooms/edit.php on line 62
 * Deleting the } character the form opens but the code doesn’t list the branches.
   
   The error message is: Notice:Undefined variable in val in /var/www/html/wp-content/
   plugins/book-a-room/templates/rooms/edit.php on line 60.
 * The version is WordPress 4.8.1 and the latest plugin.
 * Thank you
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9509772)
 * I’m not sure if this fixes it, but I just put up a small version update.
 * I went through and added a space after the parentheses in some of the code. See
   if this new update helps.
 * Also, do you know what version of PHP you are running?
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9511494)
 * Hi thanks for the support. It seems that the update didn’t fixed the problem.
   My PHP version is 5.4.16
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9513246)
 * Did you try it after turning on the error reporting?
 * I see I said change it and didn’t put a change. It should temporarily change 
   to:
 * define(‘WP_DEBUG’, true);
 * Then try it again and let me know if you get any errors.
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9513413)
 * Hi the problem now is
    Parse error: syntax error, unexpected ‘}’ in /var/www/
   html/wp-content/plugins/book-a-room/templates/rooms/edit.php on line 62
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/create-rooms/#post-9513429)
 * If i delete the } character the room page opens to create a new room but in the
   branches drop down list i get the same error Notice:Undefined variable in val
   in /var/www/html/wp-content/plugins/book-a-room/templates/rooms/edit.php on line
   60.
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9513700)
 * Deleting the character isn’t the fix, as it needs to close the foreach loop in
   line 56:
 * `foreach ( $branchList as $key => $val ) {`
 * I’ve gone over this code several times and can’t find why this isn’t working.
   I can’t find the error or recreate it on my end. I’m going to ask on our Facebook
   page if anyone else has seen this problem.
 * Was this a new install or an upgrade?
    Are you hosting on Windows IIS or Apache?
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9513704)
 * You have created branches, correct? At least one?
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9514813)
 * Yes of course
 *  Plugin Author [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * (@chuhpl)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9514993)
 * Was this an upgrade or a fresh install? If fresh, can you remove it completely
   and try installing again?
 * I can’t seem to recreate this problem on my test machine!
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9516179)
 * I have remove it and the same problem exists. I believe that it has something
   with the version of PHP may be the syntax cannot recognize the parameter $val
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9516204)
 * The problem is that there is a missing php inside just before foreach. I changed
   it to
 *  <?php
    foreach ( $branchList as $key => $val ) { $temp = $branch_line;
 *  Thread Starter [christoyor](https://wordpress.org/support/users/christoyor/)
 * (@christoyor)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/#post-9516205)
 * It now works as expected

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/create-rooms/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/create-rooms/page/2/?output_format=md)

The topic ‘Create Rooms’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/book-a-room_f4ece6.svg)
 * [Book a Room](https://wordpress.org/plugins/book-a-room/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/book-a-room/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/book-a-room/)
 * [Active Topics](https://wordpress.org/support/plugin/book-a-room/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/book-a-room/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/book-a-room/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Cleveland Heights-University Heights Public Library Webdeveloper](https://wordpress.org/support/users/chuhpl/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/create-rooms/page/2/#post-9517183)
 * Status: resolved