Search

Language:  
Search for:

  • Article for your preferred language does not exist. Below is international version of the article.
Available article translations:

Error while accessing Parallels Web Presence Builder: "Base table or view not found"

APPLIES TO:
  • Parallels Web Presence Builder 11.5
  • Parallels Plesk 11.5 for Linux
  • Parallels Plesk 11.5 for Windows

Symptoms

The following error is displayed when trying to access the Web Presence Builder, either after a clean installation or upgrade from previous versions:

Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sitebuilder5.site_version' doesn't exist  
File Generic.php  
Line 32
Type SB_Facade_Exception_Generic

or

A fatal error has occurred
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'share_parents' in 'field list'
Details have been logged for the administrator.

Cause

Web Presence Builder database was not created during an installation or upgrade procedure because the MySQL strict mode is enabled.

Resolution

Disable strict mode in MySQL and recreate the Web Presence Builder database.

  1. Edit MySQL configuration file

    Linux platform -- /etc/mysql/my.cnf

    Windows platform 32bit -- C:\Program Files\MySQL\MySQL 5.1 Server\my.ini

    Windows platform 64bit -- C:\Program Files (x86)\MySQL\MySQL 5.1 Server\my.ini

    Withdraw STRICT_TRANS_TABLES and STRICT_ALL_TABLES from the sql-mode configuration directive or comment it out altogether:

    # cat /etc/mysql/my.cnf|grep sql-mode
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    
  2. Restart MySQL service to apply changes

    Linux platform:

    /etc/init.d/mysqld restart
    

    Windows platform:

    > sc stop MySQL
    > sc start MySQL
    
  3. Recreate Parallels Web Presence Builder database

    Linux platform clean installation:

     # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/configure.php --init_db --merge_config --db_admin_name=admin --db_admin_passwd=`cat /etc/psa/.psa.shadow` --sb_db_user_passwd=<random_password>
    # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/post_configure.php
    

    Linux platform after upgrade from previous version:

    # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/configure.php --init_db --merge_config --db_admin_name=admin --db_admin_passwd=`cat /etc/psa/.psa.shadow`
    # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/post_configure.php
    

    Windows platform:

    > "%plesk_dir%\admin\bin\local_mysql_helper.exe" --create-database-and-user -database "sitebuilder5" -database-user "<DB_USER>" -database-user-password "<DB_USER_PASSWORD>"
    > "%plesk_dir%\admin\bin\php.exe" -c "%plesk_dir%\admin\php.ini" -dauto_prepend_file="" "%plesk_dir%\sb\utils\configure.php" --init_db --skip_database_creation --merge_config
    > "%plesk_dir%\admin\bin\php.exe" -c "%plesk_dir%\admin\php.ini" -dauto_prepend_file="" "%plesk_dir%\sb\utils\post_configure.php"
    

Search words:

recreate database

MySQL strict mode

STRICT_ALL_TABLES

Base table or view not found

STRICT_TRANS_TABLES

database does not exists

Unknown column

A fatal error has occurred

Column not found




c81e59b61af9dca603ba03b14aabe968 9f8baf78266b4e54525d1c6bf06305a5 42844a8183c58f5bd71c7d59929707e6 56797cefb1efc9130f7c48a7d1db0f0c 51438e1dfe1e98e6ad3bf2ff9709bbbb f4c89357a6ff7298f273cb70f9d95452 1bb40a2897c5fbbe5c9bd20451105ddc 824237ce663843af86f93897fbd8e2f8 8b48f7cf451d1e701c531fab3dbae2ed ffcb794077686b38f959f4ae61463cdf

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification