Jump to content

[solved]How to fix sql import error "ob_clean();failed to delete buffer" ?


Recommended Posts

What should I do to fix this problem?

 

I found this error when I tried to restore my shop from SQl which is directly backed up Prestashop backoffice itself.

post-547408-0-61296900-1376277665_thumb.png

While there is no error when I import from SQl file that exported from PHPmyAdmin.

 

I have to fix this since next admin does not have to log on t server to back it up.

 

My shop version is 1.5.4.1, I turned my on maintenance before using function DB back up from backoffice.

Shop url : www.grandcoralaustralia.com.au/Grandcoral

Edited by Xarapauy (see edit history)
Link to comment
Share on other sites

You can try the following:

 

1. put ob_start() in the top of the script, output buffering will be on (backup.php)

2. via .htaccess:

php_flag output_buffering on

or

php_value output_buffering 1

3. try to find this setting in the backend panel (ex.CPanel) of your hosting

4. contact hosting administrator on this issue

Link to comment
Share on other sites

@mfedorets You are my life saver. IT is perfecto, I can import back to the server without any problem. :lol:

:D

What is the cause of this problem? The increased amount of data, or server. please shade the light for php dumb.

Thank you very much

 

Thank you for this feedback :)

The reason was the ob_clean() function wasn't able to find the buffer, maybe because the buffering was off on your server.

You can read about the buffering in simple words in this article.

As you have no rights at your hosting to manage php settings, one possible way is just check buffer size before ob_clean evaluation. If buffer is empty we don't start buffer cleaning and error will not appear.

 

Think you can mark this topic as solved.

  • Like 1
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
×
×
  • Create New...