Restaurant WordPress Theme: L'ambiance

Contents

1. Upgrading to version 2.0

2. Using the menu-manager with Polylang

3. Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /wp-content/plugins/vagebond-background-manager/vendor/illuminate/support/ServiceProvider.php on line 114

4. One click importer

5. Request a refund

6. Parse error: syntax error, unexpected '.' in /wp-content/plugins/vagebond-background-manager/vendor/illuminate/database/Capsule/Manager.php on line 199

7. Using Polylang

8. Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'' in ...

9. Updating to L'ambiance 1.2

1. Upgrading to version 2.0

We've done a complete overhaul with version 2.0 so it might be that your child-theme won't work as expected. Should this be the case let us know so we can guide you.

To update please follow this guide:

  1. Please backup your database (always best to be sure)
  2. Backup your current ambiance folder. Create a zip and drop it somewhere else.
  3. De-activate and remove your plugins. (No worries, we won't remove your data). (except contactform7, we've noticed that this also deleted your forms!)
  4. De-activate and remove L'ambiance. (Don't remove existing child theme's)
  5. Upload the new L'ambiance
  6. Activate the theme.
  7. Install and activate your plugins.
  8. Check the main menu option in appearance / menus.
  9. Your good to go.

If you need more help, let us know we're here.

Kind regards.


2. Using the menu-manager with Polylang

Ambiance has been created to ensure an easy and fast setup.

However working with a multi-language setup can be tricky sometimes. In this article we'll explain how you can use the menu-manager in combination with polylang.

1) It's important that the metadata for the page is filled in:

2) Create your "Menu" page (in the first language) and choose the default template layout for all pages you will be creating from this point on.

3). Open the visual composer widgets bar and select price menu. A list will display for where you can choose your menu page.

4) Sometimes the menu will not display in the content area (we're looking into this) but to verify every thing has worked correctly select classic mode from the visual composer settings bar and you will see the shortcode has been created.

5) Repeat steps 1 till 4 but for the next pages from the menu select the first menu page you've created.

Keep doing this for each language and you will have the nice horizontal animations and will retain the top navigation that allows you to browse your menu pages easily.

Hope this helps :).


3. Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /wp-content/plugins/vagebond-background-manager/vendor/illuminate/support/ServiceProvider.php on line 114

This error occurs when you've got a php version that's lower than php 5.6. The only solution to this issue at the time is to upgrade your WordPress version.

We are however working on a version that supports php 5.4 >.

This has been resolved in L'ambiance 1.2

4. One click importer

We've listened to your feedback and we've implemented a one-click-importer starting from version 1.2.9.

Just install the importer which gets suggested once you install L'ambiance and go to appearance / import demo data and the rest happens automatically.


5. Request a refund

Requesting a refund is easy, follow the following guidelines:

https://help.market.envato.com/hc/en-us/articles/209980383-How-do-refunds-work-#how-do-i-request-a-refund

6. Parse error: syntax error, unexpected '.' in /wp-content/plugins/vagebond-background-manager/vendor/illuminate/database/Capsule/Manager.php on line 199

This error occurs when you've got a php version that's lower than php 5.6. The only solution to this issue at the time is to upgrade your WordPress version.

We are however working on a version that supports php 5.4 >

This has been resolved in L'ambiance 1.2

7. Using Polylang

Basic setup

To setup Polylang you will need to install the plugin and activate it.

To do this, go to the wp-admin page of your website and select the plugins menu-item in the right menu-bar. Once you've done this click the add new plugin button.

Search for Polylang and install  the plugin. Once the installing has completed activate the plugin. You will notice there's a new menu item called languages. Click this setting.

You can add your languages here. Once you've completed this you are good to start configuring your website.

First we need to add copy's of all the pages for the chosen languages. So go to your pages menu and in the overview you will see that there have been added flags. Click the plus button (+) below the new language and this will create a new page for set language.

Once you've completed all the duplicating / translating of your pages it's time to configure your menu. So go to appearance/menus

Polylang has added a new menu for the languages that have been added. Now select the language you want to configure in the dropdown menu in the top and click the ( select ) button. Add all the correct pages (in the correct language) to your menu. Once you're done click the ( save menu  ) button and your done.

The contact page.

To translate the contact page you will need to translate the strings used in the contact page in your own language, to do this you can use loco translate. (https://nl.wordpress.org/plugins/loco-translate/)

You can add this plugin using the same method i've described for Polylang. Once you've installed and activated this plugin you can start adding new translations.

In the sidebar you see that there's a new item ( Loco Translate ) click it.

1) Inside the plugin you can see the bundle name ambiance click this.

2) click the ( + new language ) and add your language, don't change the location as this is your custom translation for the theme. Click ( start translating ).

3) Now you can translate all the strings used in the theme and your contact page will update for every language to.

Hope this helps.

8. Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'' in ...

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'' in /wp-content/plugins/vagebond-menu-manager/vendor/illuminate/database/Connectors/MySqlConnector.php:41 Stack trace: #0 /wp-content/plugins/vagebond-menu-manager/vendor/illuminate/database/Connectors/MySqlConnector.php(41): PDO->prepare('set names 'utf8...') #1 /wp-content/plugins/vagebond-menu-manager/vendor/illuminate/database/Connectors/ConnectionFactory.php(100): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #2 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #3 /wp-content/plugins/vagebond-menu-manager/vendor/illuminate/database/Connection.php(956): call_user_func(Object(Closure)) #4 /wp-content/plugins/vagebond-menu-manager/vendor/illumina in /wp-content/plugins/vagebond-menu-manager/vendor/illuminate/database/Connectors/MySqlConnector.php on line 41

This issue occurs when your collation type has been configured incorrectly.

In your wp-config.php file find the line that says define('DB_COLLATE', ''); and define it properly. If your database has utf-8 collation change the line to define('DB_COLLATE', 'utf8_general_ci');, if your database has utf-8mb4 collation change this line to define('DB_COLLATE', 'utf8mb4_unicode_ci');

This has been resolved in L'ambiance 1.2

9. Updating to L'ambiance 1.2

We've updated L'ambiance so the php 5.6 requirement is no longer the case. L'ambiance now supports php 5.3.29 and up.

To update please follow this guide:

  1. Please backup your database (always best to be sure)
  2. Backup your current ambiance folder. Create a zip and drop it somewhere else.
  3. De-activate and remove your plugins. (No worries, we won't remove your data).
  4. De-activate and remove L'ambiance. (Don't remove existing child theme's)
  5. Upload the new L'ambiance
  6. Activate the theme.
  7. Install and activate your plugins.
  8. Check the main menu option in appearance / menus.
  9. Your good to go.

If you need more help, please do let us know.

Kind regards.