Advertisement:

Author Topic: {solved} 8: Use of undefined constant php - assumed 'php'  (Read 21891 times)

Offline saosangmo

  • Jr. Member
  • **
  • Posts: 164
    • biển quảng cáo
{solved} 8: Use of undefined constant php - assumed 'php'
« 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
« Last Edit: April 09, 2009, 05:02:09 AM by saosangmo »

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: 8: Use of undefined constant php - assumed 'php'
« Reply #1 on: April 07, 2009, 01:00:31 AM »
Back ups of your forum? Have any?
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

Offline sanfordw

  • Semi-Newbie
  • *
  • Posts: 15
Re: 8: Use of undefined constant php - assumed 'php'
« Reply #2 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.

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: 8: Use of undefined constant php - assumed 'php'
« Reply #3 on: April 07, 2009, 10:18:21 AM »
Did you uninstall the modification manually?
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

Offline saosangmo

  • Jr. Member
  • **
  • Posts: 164
    • biển quảng cáo
Re: 8: Use of undefined constant php - assumed 'php'
« Reply #4 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!

Offline Yigal

  • SMF Hero
  • ******
  • Posts: 2,703
  • Gender: Male
  • Om Nom Nom?
Re: {solved} 8: Use of undefined constant php - assumed 'php'
« Reply #5 on: April 09, 2009, 04:23:09 PM »
*Marked Solved
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

Offline sourcy

  • Newbie
  • *
  • Posts: 7
Re: {solved} 8: Use of undefined constant php - assumed 'php'
« Reply #6 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.

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,948
  • Gender: Male
    • Kayssplace
Re: {solved} 8: Use of undefined constant php - assumed 'php'
« Reply #7 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

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