undefined index REMOTE ADDR when running newsletter cron.php
Get the solution ↓↓↓THIS IS MY LINE OF CODE IN APPKERNEL PHP
<?php
use Symfony\Component\Debug\Debug;
$tempuri = ltrim($_SERVER['REQUEST_URI'],'/');
$tempuri = explode('/',$tempuri);
if(strpos($tempuri[0],'~') !== false){
$fixurlbase = "/{$tempuri[0]}/";
}else{
$fixurlbase = "/";
}
/*** Composer ***/
include __DIR__ . "/../vendor/autoload.php";
/**** Debug ****/
if($_SERVER['HTTP_X_FORWARDED_FOR'] == "84.228.79.100" || $_SERVER['REMOTE_ADDR'] == "82.81.17.192"
|| $_SERVER['REMOTE_ADDR'] == "82.81.40.186" || $_SERVER['REMOTE_ADDR'] == "127.0.0.1"){
DEFINE("DEBUG",1);
}else{
DEFINE("DEBUG",0);
}
I keep getting this error I don't know why I tried to run cron for a newsletter
this is the errors
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: filter_sanitize_string deprecated
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.