WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Adding a 404 page not found in Codeigniter | Loop and Break

Adding a 404 page not found in Codeigniter

Often a URL is requested that doesn’t have anything associated a controller in Codeigniter, for this a 404 page not found exception may be added in Codeigniter. For this we have to add our controller in application/config/routes.php. In this file we have to find $route[‘404_override’] = ”; line and place our controller here like :

$route['404_override'] = 'Hello/pageNotFound';

where our controller file (application/controllers/Hello.php) will look like this:

Example

<?php
class Hello extends CI_Controller {
	public function index()
	{
		echo "Hello World!";
	}

	public function pageNotFound() 
	{
		echo "this is page not found page";
	}
}

Output

URL : http://localhost/myApp/index.php/klfsdkljfsd/dfsds
Output : this is page not found page

Share

You may also like...