News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

{solved} 8: Use of undefined constant php - assumed 'php'

Started by saosangmo, April 07, 2009, 12:58:43 AM

Previous topic - Next topic

saosangmo

Hello,
After hack the award mod, I can't view any topic on my forum. I go into "Forum Error Log" to debug and see the message:

http://viethan-online.com/forum/index.php?topic=1938.msg0;boardseen
Apply Filter: Only show the errors with the same message
8: Use of undefined constant php - assumed 'php'
File: /xxxx/xxx/public_html/forum/Themes/default/languages/Modifications.english.php (eval?)
Line: 1

I try uninstall the award mod but my forum doesn't work.

please help me.

thanks
-saosangmo

Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

sanfordw

check your "Modifications.english.php" file, maybe you accidentally deleted the
<?
from the first line
<?php

just a guess.

Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

saosangmo

thank you, I have restored my backup to solved this issue.

@sanfordw : I will try your suggest. It seems the best tip!

Yigal

Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

sourcy

I have the exact same issue, though I am unable to fix this with a backup file.

This is the content of the file, nothing wrong IMHO:

<?php
// Version: 1.1; Modifications


// Begin Auto Embed Media Pro Text Strings
$txt['mediapro_admin'] = 'Simple Audio Video Embedder';
$txt['mediapro_settings'] = 'Settings';
$txt['mediapro_save_settings'] = 'Save Settings';
$txt['mediapro_err_cache'] = 'Cache folder not writable must fix for performance!';

// END Auto Embed Media Pro  Text Strings         

?>

Anybody have any clue to where the error comes from?

8: Use of undefined constant php - assumed 'php'
Bestand: /home/bodypro/domains/bodypro.nl/public_html/forum/Themes/default/languages/Modifications.dutch-utf8.php (init sub template - eval?)

I even replaced the mod file with the original english file (which is empty) and I got the exact same error.

Any comments are greatly appreciated.

Andrew.

Kays

Hi, that's an eval error so it's likely happening on another file. Download and install this mod. Then disable eval, and clear the error log. Any new errors should now show what file they are happening in.

http://custom.simplemachines.org/mods/index.php?mod=2054

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: