Problem with site

Hi, I have a problem. When I turn on cloudflare. on the site, such an error appears when I turn it off, disappears. What is the reason that I am doing wrong?
Fatal error : Uncaught Error: Call to undefined function split() in /home/p558856/www/site/classes/_class.func.php:67 Stack trace: #0 /home/p558856/www/site/classes/_class.func.php(16): func->GetUserIp() #1 /home/p558856/www/rouble.space/index.php(44): func->__construct() #2 {main} thrown in /home/p558856/www/site/classes/_class.func.php on line 67

That is a PHP error and not related to Cloudflare.

You are on PHP 7.2 and split() was removed in 7.0. You will need to change the code in question and should check out https://www.php.net/manual/en/function.split.php

Maybe i change php version on hosting to 7.0 version?

You’d have the issue even with 7.0. And downgrading couldnt be a worse decision. If anything you should upgrade to 7.4.

You need to fix your code, that is the only feasible approach.

What if I’m not a programmer?

Then you hire someone :slight_smile:

Will this error only occur with CloudFlare?

That is difficult to say but the underlying issue is not “Cloudflare or not Cloudflare”, but rather simply that you are calling a non-existent function. You will need to fix that according to the documentation I linked to, however that is slightly beyond the scope of the forum. You could try over at StackOverflow for example.

ok, thanks(

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.