News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Forums stop working when I enable SMTP

Started by captainspud, March 14, 2016, 12:56:03 PM

Previous topic - Next topic

Illori

are you sure that is the correct index.template.php for your theme?

line 350 is

// Each tree item has a URL and name. Some may have extra_before and extra_after. that has nothing to do with the error that was reported.

captainspud

Margarett: Ding ding ding! Adding the protocol before the SMTP server seems to have done it-- with SSL:// at the start, there's no more hanging on page load, and my test account just received its registration e-mail. :D

Thank you SOOOOO much for your perseverence on this one. :)

YAAAAAAAY! :D

Illori: Yep, I was super confused too. I also did a check to see if they were any mal-formed references to the variable anywhere in the document, and they all seem to be written correctly. The only way I can the $scripturl variable being undefined is if it isn't being passed by the previous document when the function gets called, but I don't actually know which document that is, so I wasn't able to debug it any further. :/

captainspud

UPDATE: Bah, I'm a freaking idiot. The file I sent earlier is the index.template from my local folder. I just downloaded a fresh copy from the server and it does, indeed, have a reference to $scripturl on line 350.

*sigh*

Sorry for the dumbness. New file attached.  :/

Illori

<li><a href="' , $scripturl , '"><i class="fa fa-home"></i></a></li>'; that would be the trouble spot.

as expected you are missing the $scripturl global

2 choices, 1 is remove that line... since there is not really a name defined for that link it looks like it does not show up anywhere

2. is to add $scripturl to line 341 like this

global $context, $settings, $options, $shown_linktree, $scripturl;

captainspud

It would appear that you, also, rock. Added it to the global declarations, made a few test posts, no new errors.

<3

I'm super grateful for everybody's help. Thanks for being awesome. :D

margarett

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

Advertisement: