• I get the following error code:

    Use of undefined constant base – assumed ‘base’ in C:\xampp\htdocs\wordpress\wp-content\plugins\wordpress-shout-box-chat\chat.php on line 6

Viewing 1 replies (of 1 total)
  • The plugin has this code on line 6:

    $_GET[base]

    This should look like:

    $_GET['base']

    Notice the quotes around the word base. PHP reads this as a constant, but because there is no defined constant with that name, PHP lets you know about it by printing the message.

    It is best to use quotes in situations like this. Things could go horribly wrong if there was a constant named “base” defined in WordPress, another plugin or your active theme!

Viewing 1 replies (of 1 total)

The topic ‘PHP Error’ is closed to new replies.