News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

REQUEST_URI and HTTP_HOST Errors

Started by Balto, May 22, 2017, 10:07:23 AM

Previous topic - Next topic

Balto

We've been recently having some performance issues with our forum. I have since enabled error logging and am seeing two errors show up consistently (8000+ pages of errors in just a few days). Wondering if anyone can tell me whether these could be causing issues and how to prevent these errors.

I've also recently made sure the forum is up to date.

8: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI'
/home/xxxxxx/public_html/Themes/default/index.template.php
Line: 442

8: Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST'
/home/xxxxx/public_html/Themes/default/index.template.php
Line: 442

vbgamer45

What PHP version are you running.
And can you attach your index.template.php

Those variables are normally not in that file.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Balto

Appreciate the reply.

PHP version: 5.6.30

I've attached index.template.php

vbgamer45

Do these links change often in this data?
http://www.lendacademy.com/index.php?nav-json

You are doing a curl request on each page load... Can you store that information once?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Balto

The links themselves from the forum to the main site do not change often at all. Is this somehow related to the errors?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Balto


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: