Announcement

Collapse
No announcement yet.

Warning Message when upgraded

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • [Forum] Warning Message when upgraded

    I just upgraded from 3.8.4 to the 4.0.1 suite, and got a few warning messages when trying to go to the AdminCP. I believe I got this warning message because I failed to uninstall a modification before deleting the files. Anyway, here are my warning messages:

    Warning: include([path]/includes/mgc_cb_evo/plugins.php) [function.include]: failed to open stream: No such file or directory in [path]/includes/init.php(331) : eval()'d code on line 1

    Warning: include() [function.include]: Failed opening '[path]/includes/mgc_cb_evo/plugins.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in [path]/includes/init.php(331) : eval()'d code on line 1

    Fatal error: Call to a member function shareads() on a non-object in /home/content/15/5241015/html/includes/functions.php(6783) : eval()'d code on line 15

    Any idea how I can correct this? I don't want this mod back on there (which is why I deleted it). I just forgot to disable it before performing the upgrade. Please help. Thanks...

    Web

  • #2
    I re-uploaded all the files for this mod, and now I'm getting the following error:

    Fatal error: Cannot make static method vBulletinHook::fetch_hook_object() non static in class vBulletinHook_MGCCoding in /home/content/15/5241015/html/includes/class_hook_mgccoding.php on line 17

    Can anyone advise me on how to eliminate this error? Here is the code in the above-referenced page:

    Code:
    <?php
    class vBulletinHook_MGCCoding extends vBulletinHook
    {
        var $last_called='';
        function vBulletinHook_MGCCoding(&$pluginlist,&$hookusage)
        {
            $this->pluginlist =& $pluginlist; $this->hookusage=&$hookusage;
        }
        
        function fetch_hook_object($hookname)
        {
            //if (!isset($this->hookusage[$hookname])){$this->hookusage[$hookname]=!empty($this->pluginlist[$hookname]);} return str_replace('include(', "\$hookname = '$hookname';\r\ninclude(", strval($this->pluginlist[$hookname]));
            $this->last_called = $hookname;
            $this->pluginlist[$hookname] = str_replace('include(',"\$hookname='$hookname';\r\ninclude(",strval($this->pluginlist[$hookname]));
            return parent::fetch_hook_object($hookname);
        }
    }
    ?>

    Comment


    • #3
      Let me try to simplify my problem, and what I'm looking to do here. When I deleted all the files prior to the upgrade, the only references to this modification were then restricted to the database. Can anyone tell me what table I need to look in to delete the record that points to such modifications? I don't want to have this modification (or any other at this time) on the site. If I can just delete it from the database so that the files don't look for it anymore, that's all I really need.

      Any help anyone can provide would be greatly appreciated. Thanks so much...

      Web

      Comment


      • #4
        You should be able to tackle the problem via:
        AdmincP -> Plugin & products -> Manage Products

        Uninstall the product.

        Or

        If it doesnt exist there, go to "Plugin Manager" and delete the plugins related to this product in there.

        Comment


        • #5
          Originally posted by Jinovich
          You should be able to tackle the problem via:
          AdmincP -> Plugin & products -> Manage Products

          Uninstall the product.

          Or

          If it doesnt exist there, go to "Plugin Manager" and delete the plugins related to this product in there.
          Thanks for your response.

          I am unable to do as you suggested, because the admincp doesn't even show up for me. These errors are preventing the AdminCP from loading up at all. That's why I am hoping there is a way to eliminate this product from the database itself.

          Thanks...

          Comment


          • #6
            Edit /includes/config.php

            Beneath:

            <?php


            Enter:
            define('DISABLE_HOOKS', true);

            Save and upload the file again.

            What this will do is disable all plugins and products for your board. This should allow you to log back into AdminCP and allow you to take the steps defined in my first post.

            Once you have successfully uninstalled this product I would suggest you disable the remaining products in AdminCP this will ensure that once you have removed "define('DISABLE_HOOKS', true);" from config.php all products remain disabled.

            From this point onwards, start enabling each product 1 by 1 checking in between if it is causing errors on your board in the frontend (forums) or backend (admincp/modcp). This will help you identify non-compatible plugins with your 4.0 board.

            Comment


            • #7
              That seems to have done the trick. Thank you so much Jinovich! Now I can continue with the upgrade process. Appreciate your help...

              Web

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎