Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: saosangmo on April 07, 2009, 12:58:43 AM

Title: {solved} 8: Use of undefined constant php - assumed 'php'
Post by: saosangmo on April 07, 2009, 12:58:43 AM
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
Title: Re: 8: Use of undefined constant php - assumed 'php'
Post by: Yigal on April 07, 2009, 01:00:31 AM
Back ups of your forum? Have any?
Title: Re: 8: Use of undefined constant php - assumed 'php'
Post by: sanfordw on April 07, 2009, 02:11:25 AM
check your "Modifications.english.php" file, maybe you accidentally deleted the
<?
from the first line
<?php

just a guess.
Title: Re: 8: Use of undefined constant php - assumed 'php'
Post by: Yigal on April 07, 2009, 10:18:21 AM
Did you uninstall the modification manually?
Title: Re: 8: Use of undefined constant php - assumed 'php'
Post by: saosangmo on April 09, 2009, 05:01:10 AM
thank you, I have restored my backup to solved this issue.

@sanfordw : I will try your suggest. It seems the best tip!
Title: Re: {solved} 8: Use of undefined constant php - assumed 'php'
Post by: Yigal on April 09, 2009, 04:23:09 PM
*Marked Solved
Title: Re: {solved} 8: Use of undefined constant php - assumed 'php'
Post by: sourcy on January 19, 2011, 02:17:32 PM
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.
Title: Re: {solved} 8: Use of undefined constant php - assumed 'php'
Post by: Kays on January 19, 2011, 02:42:42 PM
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