XF 1.0 Importing or new style database error.

Hi there, when i try to create or import any style i get this message. There is nothing in any server logs or in Xenforo's logs to give any ideas to why. Has anyone seen this before?

An unexpected database error occurred. Please try again later.
An unexpected database error occurred. Please try again later.
<!-- Mysqli prepare error: MySQL server has gone away -->
Umm only happens on the styles upload. Sites running fine.

I can also edit the existing styles and they save ok. Look like it's just the style importer.

I also have a VB site on the same server and that creates a style just fine. How odd, any advice.

Jake Bunce

XenForo moderator
Staff member
That's a server problem. The connection to the database is "going away" for some reason. You may need to adjust your MySQL configuration. Here are some possibilities:


If you don't manage your own server then you need to ask your host or server person to do this.
I decided to reinstall the hole server including operating system. Installed a fresh copy of Apache and copied the website files and database over to the new install.
Same problem.

I then removed all addons.
Same problem.

I then overwrite the files with a fresh copy from Xenforo.
Same problem.

I then removed one of the styles and to my surprise it would let me create a new style.
Went to create a 2nd one and database error again.

If i remove one it allows me to install one but no more than one. Any ideas?