Jump to content

Strange rare sql error

Frank Vèssia

Recommended Posts

Hello, I have a template with 32 fields, one repeater and images and I added a function to clone a page via API. It worked since today when suddenly is throwing an sql error, never seen before:

Error: Exception: SQLSTATE[HY000]: General error: 1116 Too many tables; MariaDB can only use 61 tables in a join 

and from now on, the clone function doens't work anymore. Any idea?

Thsi si my clone function

function clonePlate($plate){
	$pages = wire('pages');
	$copy = $pages->clone($plate);
	$copy->setAndSave('title', $copy->title.' (copy)');


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...