Support

Akeeba Backup for Joomla!

#17724 An error has occurred. 0 SQL=

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Sunday, 13 October 2013 03:46 CDT

artisanwebandprint
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 3.1.5
PHP version: 5.3.13
MySQL version: 5.5.24
Host: Local Drive WAMP
Akeeba Backup version: 3.8.2 pro

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Hello, I am building a new website locally. I installed Admin Tools and then Akeeba Backup. Admin Tools works great. Akeeba Backup however gives me this error: An error has occurred.
0 SQL= (screenshot: http://screencast.com/t/pzWaxTA9M6dc)

I tried disabling the updater plugin and deleted the three updater folders as you recommended in another post but that did not change the outcome.

Please advise as I need to upload this to the server for the client to preview.

Thanks,

Dawn

dlb
Dawn,

Did this installation ever successfully back up the site? If you go into Backup configuration and save changes, do the changes show up when you go back in to the config screen? Does this backup produce any log file? If so, please zip and upload it.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

artisanwebandprint
Hi Dale,

No it did not do a successful backup. The extensions installed successfully. When I click on the link to go to the post-installation wizard I get the screenshot I sent you. I also get it when I go to Components>Akeeba Backup.

Please advise.

Dawn

dlb
Hi Dawn,

I'm pretty sure this is a bad intall. I think the database tables were not created during the installation.

If you are in a hurry, try the installation again. Don't try to uninstall, just install again over what is there. If you can wait a bit, I am going to send this to Nicholas to see if he agrees that I'm on the right track. It is fairly late in the evening in his corner of the world.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

artisanwebandprint
Hi Dale,

I tried installing it again and I get this page: http://screencast.com/t/uOS2fy1wpBxv

However when I click on post-installation wizard or Components>Akeeba Backup I get the same sql error.

Best,

Dawn

dlb
That sure looks like a successful install to me. There is something wrong with the tables. I really need to have Nicholas take a look at it.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

artisanwebandprint
Here's a screenshot of the tables via PHPMYadmin: http://screencast.com/t/UHE9LiKmfsx

Best,

Dawn

nicholas
Akeeba Staff
Manager
Please go to your site's Global Configuration and set Debug Site to No. Then reload Akeeba Backup's control panel page twice.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

artisanwebandprint
Hi Nicholas,

I checked in the global configuration and the site was set to debug "no". So I set it to yes, saved it and then set it to "no" again and saved it in case something was stuck. I then went to Akeeba backup twice via components and both time got the SQL error. I then clicked on the Return to Control Panel which took me to my main admin home page. I noticed on the right in the module that there was a link to backup my site so I clicked it. It took me past the Akeeba Backup control panel directly to the backup screen. I backed up the site and it completed successfully. I've attached the log file for you.

The unfortunate thing is that I still cannot go to the Akeeba Backup control panel as I still get the error. I will not try to restore this backup to the online server so you can access the site.

Best,

Dawn

artisanwebandprint
Hello,

I ran kickstart with the backup I made locally and it runs as it should; however, when I click to view my site's frontend I see the plain Joomla installation. It unpacks the backup, asks for the database credentials, supposedly restores the database, and then asks to remove the installation directory which I do. So you would think the backup is restoring. But upon restoration nothing has changed from the core Joomla install.

Perplexing...

Dawn

Update:
I noticed that the "core Joomla" database was 7 mb in PHPmyadmin at the server level. So I took a look at it and found that the restoration did in fact restore the database from my local drive but did not overwright the table prefix. So two sets of table prefixes were present. So I deleted the database and Joomla install, did a fresh install here: http://wann.artisanwebandprint.com with the same database prefix used on my local drive. Then I ran kickstart.php and the installation completely successfully. Now I have this error:
Error displaying the error page: Application Instantiation Error


dlb
Please check the error log for this site (that is not the same as the access log). I think you will find a 500 error. That error message will give more information about what is happening.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

artisanwebandprint
Hello,

I uninstalled both akeeba products on my local drive and then exported the database. I then imported the database to the live server. I checked the tables and found no tables for admin tools or akeeba backup.

I then tried to install Akeeba Backup and it worked. I then clicked Post Installation wizard and got this error:
An error has occurred.
1146 Table 'wannjim_wannjim.qm5qd_ak_profiles' doesn't exist SQL=SELECT `configuration` FROM `qm5qd_ak_profiles` WHERE `id` = '1'

I searched my entire system and did not find an error log.

You can now access the site here: http://wann.artisanwebandprint.com

If you would like login credentials, please let me know.

Dawn

dlb
The error log is the server error log, sometimes it is available through the host control panel, sometimes not. Sometimes it is in a log folder, it varies from one host to another. Some hosts do not make the error log available to customers at all.

Have you tried to download the Akeeba Backup file from our website again? Something is preventing the tables from being created during the installation. A damaged zip file is a really crazy idea, but it could happen.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
Sometimes you will receive an error:
An error has occurred. 0 SQL=

when installing or upgrading Akeeba Backup. This error occurs only on Windows when you are using an uppercase database table prefix and your default database engine is set up to be MyISAM (default configuration on pre-packaged servers). The solution is to use a lowercase database prefix in your site's Global Configuration page.

Technical explanation
This is actually a problem with MySQL when you're using MyISAM tables. Each MyISAM table is saved as a file on your hard drive. The name of the file is the name of your table. On Windows the filenames ABC_something and abc_something point to the same filename as the underlying file system (NTFS or FAT32) is case insensitive – it treats uppercase and lowercase letters as the same. On Linux and other UNIX-based operating systems –where MySQL was originally designed to run– the file systems are case sensitive which means that ABC_something and abc_something are different files. This fundamental difference makes MySQL fail when trying to modify MyISAM tables whose name includes uppercase characters names on Windows.

This is not a problem with Akeeba software or Joomla!. It is a problem with MySQL. Our software uses abstracted table names, in the format #__something. The "#__" is called the metaprefix and is automatically replaced by Joomla! itself to the configured database table prefix automatically. The SQL query with the replaced prefix is then sent to MySQL for execution. MySQL fails miserably –for the reasons already mentioned– without providing an error code and error message. This confuses Joomla!'s JDatabase API which ultimately results in this unintelligent error message.

A simple solution is:
  1. Open the file configuration.php, found in your site's root, with a plain text editor such as Notepad
  2. Search for the line starting with public $dbprefix
  3. Change the uppercase to lowercase


For example, if the original line reads:
public $dbprefix = "ABC_";

change it to read:
[code]public $dbprefix = "abc_";


WE STRONGLY ADVISE YOU TO NEVER USE UPPERCASE DATABASE TABLE PREFIXES.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!