News:

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

Main Menu

runtime error

Started by iain sherriff, January 24, 2014, 06:41:36 AM

Previous topic - Next topic

iain sherriff

Does this give clues as to where I should look to cure this Please ?


"Enable compressed output" is not selected.
This error was showing on my account and I was not using mobile but was wireless.
The code around there is


// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));

// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}

// Restore post data if we are revalidating OpenID.
if (isset($_GET['openid_restore_post']) && !empty($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post']) && empty($_POST))
{
$_POST = $_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]['post'];
unset($_SESSION['openid']['saved_data'][$_GET['openid_restore_post']]);
}

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);

// The main controlling function.


Thanks in advance
SMF 2.0.12

kat

Some could, probably, figure this out, as-is. But, for me, that "Eval" thing is masking the true error.

Can you go to Admin>Configuration>Server settings and put a check in "Disable emulation of templates"?

After you've done that, you should get the true error-message.

iain sherriff

Thanks K@.  (evaluation ? ) It already is ticked ?
SMF 2.0.12

kat

I think you'll need to have a natter with your host, for this one, mate.

I suspect that there's something in php.ini under the "disable_functions" section that's been... er... disabled.

Possibly, you don't have full CHOWN ownership of everything, on your site?

(I'm fishing, here. You may have noticed) ;)

I'm pretty sure it's "Permissions" related, anyway.

iain sherriff

SMF 2.0.12

kat

Let us know what they say, yeah? :)

iain sherriff

SMF 2.0.12

iain sherriff

Server is on maintainence today.
Will just sit it out for a bit (everything seems to work, just thousands of errors logging)

I'll mark this as solved for now
SMF 2.0.12

Arantor

There is a WTf there. The whole list of evals is a bit suspicious. In fact, look at the top of our index.php file for something that should not be there.

iain sherriff

I can see differences in line with the mods I know are there but cant see anything wrong.
Can I post it here for someone to look ?
SMF 2.0.12

kat


Arantor

Please attach your index.php file, because it does look suspicious from what has been posted thus far.

iain sherriff

SMF 2.0.12

kat

Might be interesting, this... I'm about to disable avast, because it wouldn't let me download that file. Claims it's infected with PHP:agent-RK [Trj].

kat

Yep. Look at the first line.

It should be just:

<?php

Yours has a lot more than that. I'm afraid you've been hacked.

I'm afraid you'll need to go through all of your files and remove that malicious code, unless you have a clean backup. :(

You'll want to notify your host, PDQ, too.

Arantor

Sneaky, too. Must remember that one in future.

iain sherriff

bugger..........

Thanks guys.
SMF 2.0.12

iain sherriff

I'm confused.
When I look at the first line of the attachment I see
<?php

but if I copy it and paste in is see al the other gibberish before the <?php

??
SMF 2.0.12

Arantor

That's the thing... it's all one line. One very long line with lots of spaces before the 'gibberish'. It's perfectly legal PHP to do that.

Shambles

As perverse as it may seem, I quite like what's been done there. Sorry.

Advertisement: