@brianrho, this one error arrived based on plugin “visitors-traffic-real-time-statistics”.
Temporary disabled or removed from plugin directory.
IF u are know about code make better condition on hear.
<b>Notice</b>: Undefined index: page_id in <b>/home/amatolah/public_html/wp-content/plugins/visitors-traffic-real-time-statistics/WPHitsCounter.php</b> on line <b>39</b>
/home/amatolah/public_html/wp-content/plugins/visitors-traffic-real-time-statistics/WPHitsCounter.php on line 39
$this->pageId = $_GET['page_id'];
Replace with and test:
if(isset($_GET['page_id']) && !empty($_GET['page_id'])):
$this->pageId = $_GET['page_id'];
endif;
Hi,
I didnt find this line?
visitors-traffic-real-time-statistics/WPHitsCounter.php on line 39.
Where do i get this code?
$this->pageId = $_GET[‘page_id’];
….Please guide me to replace. Or is it replaced?
Thanks
ARta
Hey Ravi,
Where should i go to add this line?
<b>Notice</b>: Undefined index: page_id in <b>/home/amatolah/public_html/wp-content/plugins/visitors-traffic-real-time-statistics/WPHitsCounter.php</b> on line <b>39</b>
before replacing
$this->pageId = $_GET[‘page_id’];
Replace with and test:
if(isset($_GET[‘page_id’]) && !empty($_GET[‘page_id’])):
$this->pageId = $_GET[‘page_id’];
endif;
All ready said to u find
$this->pageId = $_GET['page_id'];
Replace above define line with my condition code.
Hi Ravi,
Thank you for your reply. I am pretty inexperienced.
Would you mind telling me what to do as simply as possible?
I have deactivated the visitors traffic plugin and the web page is now loading but still showing the error message on the front end.
Appreciate your patience.
Thanks,
Brian
@brian,
I have seen again this one fixed please remove all cache.
Thanks,
Ravi patel
After an update of 3fsquadronassociation.com wordpress to 4.5.2 i get numerous lines of error on the web page
arning: Invalid argument supplied for foreach() in /websites/123reg/LinuxPackage21/3f/sq/ua/3fsquadronassociation.com/public_html/wp-includes/post.php on line 1390
Any help appreciated
http://www.3fsquadronassociation.com/
@ Ravi
Worked – thanks a lot!
Brian
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support