0
Welcome Guest! Login
0 items Join Now

Notice: Constant already defined

  • Notice: Constant already defined

    Posted 12 years 1 month ago
    • I migrated a website from 1and1 to Hostgator and now I'm receiving these notices after migration.
      Any suggestions?

      Notice: Constant ROKSPROCKET already defined in /home/morrystr/public_html/plugins/system/roksprocket/roksprocket.php on line 82

      Notice: Constant ROKSPROCKET_VERSION already defined in /home/morrystr/public_html/plugins/system/roksprocket/roksprocket.php on line 83

      Notice: Constant ROKGALLERY already defined in /home/morrystr/public_html/plugins/system/rokgallery/rokgallery.php on line 40
  • Re: Notice: Constant already defined

    Posted 12 years 1 month ago
    • bump - still got me rather perplexed.
  • Re: Notice: Constant already defined

    Posted 12 years 1 month ago
    • Actually, I fixed this myself - but I'm not sure still about why it started happening

      I applied the following:
      if(defined('ROKSPROCKET')) {}
      else {define('ROKSPROCKET', '1.6.1');define('ROKSPROCKET_VERSION', '1.6.1');}

      and
      if(defined('ROKGALLERY')) {}
      else {define('ROKGALLERY', '2.23');}
  • Re: Notice: Constant already defined

    Posted 11 years 2 months ago
    • It turns out that deleting those two lines makes RokSprocket stop behaving well at all. it won't show up on the front end and does not properly render on the back end... then crashes in exit.
      The next (ie 2nd) time I try to edit the module I get: Unable to find the RokSprocket layout text. It may be a template specific layout that is not available in the current default template.

      I had the same error. Seems to have grown from Joomla not being able to find the formatting sheets for RokSprocket and my reinstalling it while it was there (but who knows).

      Anyway, I just deleted line 82 and line 83 and the error at least went away.


      Unfortunately I think there is something still wrong as yesterday I had a similar error w/ K2. I disabled K2 but deleting a few lines did not fix it when I tried that first.

      Does "config.php" need to be "writable". This is highlighted when I do system checks.

      In every event it seems that Joomla is getting some offset registers somehow. Maybe easy but doesn't look like it. I will try your code insertion w/ the newer version numbrs
    • Last Edit: 11 years 2 months ago by L.Arnold.
  • Re: Notice: Constant already defined

    Posted 11 years 2 months ago
    • Is a PHP error caused by something. I was able to disable the alert in Global Configuration by setting error messages to default.

Time to create page: 0.075 seconds