News:

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

Main Menu

Fatal Error: ~Load.php on line 142

Started by dgryder, July 13, 2017, 03:48:27 PM

Previous topic - Next topic

dgryder

Upgraded to 2.0.14 and now my site will not open but gives this error

Fatal Error: ~Load.php on line 142

How can I get the forum back?

Illori

upgrade to php 5.4 or higher, talk to your host.

dgryder

will updating the php affect my other sites?

Illori

i cant tell you that as we dont know what else you are running and what their requirements are.

Sir Osis of Liver

Don't go higher than 5.6, you should be ok.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Colin

Rather than taking the break first try later, which is totally fine if you don't mind things going down for a bit, have a look at the PHP version requirements of the other applications you are running.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

dgryder

I upgraded to php 5.4 and was able to get the login page to open

Everytime I login I immediately get this:

An Error Has Occurred!
Your session timed out while posting. Please go back and try again.

Sir Osis of Liver

Are you running a theme other than Curve?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dgryder


Sir Osis of Liver

index.template.php

Find this -



echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';




Change it to this -



echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>';


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dgryder

I appreciate your assistance. I changed the index.template.php in the CarbonRed theme and it still did the same result:

An Error Has Occurred!
Your session timed out while posting. Please go back and try again.


In the URL it has this: ~index.php?action=login2

Sir Osis of Liver

If you did the edit correctly, it should work.  In CarbonRed it should look like this -



echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user"  size="10" class="input_text" />
<input type="password" name="passwrd"  size="10" class="input_password" />
<input type="submit" value="', $txt['login'], '" class="button_submit" />
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>', $context['current_time'],'<br />';
  }



If code is correct, try Curve theme.  If problem persists, you'll have to disable session check to fix it. 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dgryder

This is what the code looks like:

      echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
      <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
            <input type="text" name="user"  size="10" class="input_text" />
            <input type="password" name="passwrd"  size="10" class="input_password" />
            <input type="submit" value="', $txt['login'], '" class="button_submit" />
            <input type="hidden" name="hash_passwrd" value="" />
            <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
         </form>', $context['current_time'],'<br />';
     }

I tried pasting your code in and it would not even open the login page.

I don't know how to change the theme to Curve without being able to login.

Deaks

Go to your site and after when your on a page type in index.php?theme=01

For example http://www.examplesite.com/forum/index.php?theme=01
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Illori

Quote from: BryanD on July 16, 2017, 05:04:35 AM
Go to your site and after when your on a page type in index.php?theme=01

For example http://www.examplesite.com/forum/index.php?theme=01

actually it is
http://www.examplesite.com/forum/index.php?theme=1 not 01, as curve is the number 1 theme.

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Sir Osis of Liver

The code I posted works fine in CarbonRed in 2.0.14.  Attach your index.template.php.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dgryder

here is the index.template.php as it is currently

dgryder

BryanD, I get the exact same results if I try to login with ~index.php?theme=01

dgryder

I got in to the forum by using repair.settings.php

Now I will try to make sure the smf is up to date

Is there something I need to fix before switching to CarbonRed?

Advertisement: