Don't work page 404 - Joomla CMS

Hi, guys! Need help! Page 404 stopped working.

Here is page code 404:

<?php defined('_JEXEC') or die; if (!isset($this->error)) { $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); $this->debug = false; } // Get language and direction $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $this->language = $doc->language; $this->direction = $doc->direction; if($this->error->getCode()=='404') { header("HTTP/1.0 404 Not Found"); $url=JURI::root()."error-404"; $data = file_get_contents($url) or die("Cannot open URL"); echo $data; } ?>

Function ‘file_get_contents($url)’ does not work.

Please, help me!

A 404 comes from your server, that is not Cloudflare related. You will need to check on that server why it returns that code and not the content.

This isn’t a Cloudflare issue. There are multiple problems with that code; you should seek the help of a professional PHP developer.