Drupal Panels

Zyxware default image1
| 2 min read
A handful of Drupal users had reported that clicking on the Show Layout Designer redirects them back to the previous page. A few users reported the presence of the following error in their Drupal log " Table 'a4l.panels_layout' doesn't exist query: SELECT * FROM panels_layout t__0 in /var/www/vhosts/afl.pghtechministries.org/httpdocs/sites/all/modules/ctools/includes/export.inc on line 379." after they had upgraded the Panels and Ctools modules after seeing the issue. If you are facing the same error in your Drupal site when using Panels then read on to know the fix.
Zyxware default image1
| 2 min read
Sometimes we may require updating several rows of data with different queries and make sure every query execute correctly to keep the database consistency. Here is a simple solution to enable such transactions with Mysql and Python. To do this, we can start a transaction and commit the changes to the table. The data will be written to the table only after the commit statement is executed. If there is an error in between, we can rollback, so that all the inconsistencies are cleared.