News:

Wondering if this will always be free?  See why free is better.

Main Menu

Global Headers and Footers

Started by SMFHacks.com Team, August 02, 2006, 10:39:07 PM

Previous topic - Next topic

Kindred

See that eval?  It means that the actual error is not in that location...

I would bet you good money that the actual error is occurring because of code that you have ADDED in the global header and footer section of the admin... In other words, your own code -not smf and not even the mod code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

TheSnake

Quote from: Kindred on September 20, 2015, 05:39:33 PM
See that eval?  It means that the actual error is not in that location...

I would bet you good money that the actual error is occurring because of code that you have ADDED in the global header and footer section of the admin... In other words, your own code -not smf and not even the mod code.
I will try to remove them one by one. Thanks for this idea!

TheSnake

Quote from: TheSnake on September 20, 2015, 06:24:07 PM
Quote from: Kindred on September 20, 2015, 05:39:33 PM
See that eval?  It means that the actual error is not in that location...

I would bet you good money that the actual error is occurring because of code that you have ADDED in the global header and footer section of the admin... In other words, your own code -not smf and not even the mod code.
I will try to remove them one by one. Thanks for this idea!
I tried: no, there is another problem, it's not some of the codes (we use omly Google Ads and Analytics and 1 cookie consent code)...

TheSnake

Quote from: TheSnake on September 20, 2015, 06:53:33 PM
Quote from: TheSnake on September 20, 2015, 06:24:07 PM
Quote from: Kindred on September 20, 2015, 05:39:33 PM
See that eval?  It means that the actual error is not in that location...

I would bet you good money that the actual error is occurring because of code that you have ADDED in the global header and footer section of the admin... In other words, your own code -not smf and not even the mod code.
I will try to remove them one by one. Thanks for this idea!
I tried: no, there is another problem, it's not some of the codes (we use omly Google Ads and Analytics and 1 cookie consent code)...
Maybe here is the problem:  <img src="', $settings['default_images_url'], '/smfhacks_images/global-hf-tick-circle.png" alt="" />
What can I change here?

Kindred

Is that code in your header/footer code?

Because, otherwise no... There is no problem with that code.  And that is not the image variable that the error declares as undefined.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

First you need to disable templates evaluation. The error message should change, let us know what it is
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

If the issue is occurring inside the user set code, the disable template will have no effect.  I discover that with portal blocks as well...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

TheSnake

Quote from: Kindred on September 20, 2015, 08:07:32 PM
Is that code in your header/footer code?

Because, otherwise no... There is no problem with that code.  And that is not the image variable that the error declares as undefined.
It is a code from the header-footer modification.

TheSnake

Quote from: margarett on September 20, 2015, 10:18:49 PM
First you need to disable templates evaluation. The error message should change, let us know what it is
Oh. I did it already and the change was this: 8: Undefined index: image:
/home/______/public_html/Themes/default/GenericControls.template.php
Line: 127

margarett

It suggests that your code isn't always adding the "image" index to a certain array. Or not adding it at all.
Without looking at the code, it is impossible to diagnose it further (not exactly sure how or why it is using GenericControls, though...)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

TheSnake

Is there some better headers and footers to use then? (Or another idea?)

vbgamer45

You can uninstall headers and footers and see if that error goes away if it does then you know that was the issue.
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

TheSnake

Quote from: vbgamer45 on September 21, 2015, 12:05:32 PM
You can uninstall headers and footers and see if that error goes away if it does then you know that was the issue.
Yes, I tried already. This is the issue.
So, I need headers&footers. What I can do now? Just keep in this way or use something similar?

vbgamer45

Does it happen on every page load the error?
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

TheSnake

 It's every time when someone submits a post - no matter an admin, or an user.

margarett

Can you give us the code you're adding in GHF?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

TheSnake

 Yes. Google AdSesnse, Google Analytics, Cookie consent (because of the EU law).

margarett

Don't think that it would interfere with the posting but who knows...

I would suggest you take out all code, then try to post. See if there are errors
Then add just one of the codes. Try again. Repeat until you find the culprit.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

TheSnake


TheSnake

 The same result (with blank headers and footers) -- the error persists:
Quote8: Undefined index: image
File: /home/________/public_html/Themes/default/smfhacks_templates/global-hf.template.php (main sub template - eval?)
Line: 127

Advertisement: