Le petit théâtre ambulant project

Technical Consulting
2018

Client : Association offering theatre workshops for young people in Lyon – France
Website Status : current website
Duration : One-off assistance in 2018
Project goals :The WordPress website is displaying an error message on the home page. The aim is to debug the website
(Child theme "Theater" based on the Twenty Ten theme)’
pta diagnostic

Website Diagnostic:

  • The website is working, no blank pages
  • BUG n°1 : Several Warning messages of the following type appear on the website's online pages:
    “ Warning: mysql_query(): No such file or directory in /homepages/12/d294967547/htdocs/wp-content/themes/theatre/data.php on line 71 “
  • BUG n°2 : Several Warning messages of the following type appear in articles directly in WordPress :
    “ Warning: mysql_query(): No such file or directory in /homepages/12/d294967547/htdocs/wp-content/themes/theatre/single.php on line 24 "

Resolving Bug n°1: several steps (move on to the next step if the previous step does not resolve the bug):

  • Recover files via ftp to view lines of code
  • Check database hosted by 1&1: export database to 1&1 and check on MyPHPadmin
  • Check the settings for the ‘theatre’ child theme
  • Reinstall WordPress in case of a corrupted WordPress file
  • Study warning messages. The line numbers mentioned contain the mysql_query() and mysql_fetch_array() functions, which have become obsolete in accordance with the new programming standards. These functions therefore need to be updated. They are replaced by the functions $wpdb->prepare and $wpdb->get_results, prepared queries, whose use is important for securing the site

FTP, Database, MyPHPadmin, WordPress installation, Child Theme

pta bug 1
pta bug 2

Resolving Bug n°2: several steps (move on to the next step if the previous step does not resolve the bug):

  • The single.php file is causing problems. It was modified when the Theatre child theme was created. Never modify the source files of WordPress (or of a theme) because each time it is updated, it will be deleted
  • Updating the Twenty ten theme solved the problem

WordPress update, Child Theme

Website maintenance:

  • Backup of files and database
  • Update of WordPress
  • Installation of the Updraft backup plugin so that the association can carry out backup operations
  • Documentation on how to use this plugin

FTP, Database, MyPHPadmin, WordPress, Child Theme

pta maintenance

Do you have questions about "Le petit théâtre ambulant" project ?

Contact me !

Maïty Bugada
Web designer/developer

info@my-t-media.com