Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Location
    Cardiff, Wales
    Posts
    305
    Plugin Contributions
    0

    Default Notice: Use of undefined constant

    I today had this appear on my site after a hack and cleanup. I reset all ownerships, file permissions, the database_tables file is OK and tables are defined. Everything seems OK. The hacking added some code to some files, so we just removed the code.

    Anyone have any ideas? Thanks
    Code:
    Notice: Use of undefined constant PHPBB_LINKS_ENABLED - assumed 'PHPBB_LINKS_ENABLED' in /home/customer/public_html/includes/classes/class.phpbb.php on line 27
    
    Notice: Use of undefined constant TABLE_CURRENCIES - assumed 'TABLE_CURRENCIES' in /home/customer/public_html/includes/classes/currencies.php on line 29
    
    Fatal error: Call to a member function Execute() on a non-object in /home/ccs/public_html/includes/classes/currencies.php on line 31

  2. #2
    Join Date
    Jan 2004
    Posts
    65,335
    Blog Entries
    7
    Plugin Contributions
    229

    Default Re: Notice: Use of undefined constant

    PHPBB_LINKS_ENABLED is an entry in your configuration table in your database.

    TABLE_CURRENCIES is defined in your /includes/database_tables.php file.

    You'll need to put them back properly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2006
    Location
    Cardiff, Wales
    Posts
    305
    Plugin Contributions
    0

    Default Re: Notice: Use of undefined constant

    I figured it out and sorry to waste your time, but it is not a Zencart issue, but an issue with me or the server... the includes/init_includes was missing! It took me ages to figure it out, I had to trace where the database_tables.php file is called from because I thought it was not calling the database_tables file. Copied this folder from another install I have and it worked OK.

    Had to ask the question because I spent hours trying to fix it, and didnt realise and had no idea how that folder disappeared.

 

 

Similar Threads

  1. v155 adding constants - PHP Notice: Use of undefined constant
    By torvista in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 4 May 2016, 07:07 AM
  2. Undefined constant text
    By TheOracle in forum Bug Reports
    Replies: 6
    Last Post: 11 May 2007, 04:19 AM
  3. Undefined Notice: Use of undefined constant
    By TheOracle in forum Bug Reports
    Replies: 0
    Last Post: 6 May 2007, 06:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR