We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    Hi All

    I have severe problems with modx redo manager after removing GoogleAnalytics 1.0.0-pl in packages.

    Fatal error: require() [function.require]: Failed opening required '/var/www/vhosts/renosommerhalder.ch/httpdocs/manager/controllers/analytics/security/login.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/vhosts/renosommerhalder.ch/httpdocs/core/model/modx/modmanagerrequest.class.php on line 104


    anyone a suggestion how I can fix this.

    modx Revolution 2.1.3

    thanks a lot

      • 33968
      • 863 Posts
      Cleared the cache?
        • 2901
        • 277 Posts
        Lucas

        I have no access at all. I was kicked out of the manager on logout.
          • 3749
          • 24,544 Posts
          Try deleting all files in the core/cache directory and clear your browser cache and cookies.

          It's also possible (though unlikely) that GA removed something important during the uninstall. You could try restoring the Setup directory and running an upgrade install.

          Did you install the Google Analytics Dashboard? That would be more likely to cause trouble on uninstall because it messes with the Manager templates. [ed. note: BobRay last edited this post 14 years, 10 months ago.]
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 2901
            • 277 Posts
            BobRay thanks!

            sorry for the late reply was away in a meeting.

            Ok I've tried to delete all files in core>cache – does not work.

            I then tried to run the setup again resulting in following error when calling the setup.

            Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'language.tpl'' in /var/www/vhosts/renosommerhalder.ch/httpdocs/core/model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace: #0 /var/www/vhosts/renosommerhalder.ch/httpdocs/core/model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 /var/www/vhosts/renosommerhalder.ch/httpdocs/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 /var/www/vhosts/renosommerhalder.ch/httpdocs/setup/includes/modinstallsmarty.class.php(69): Smarty->fetch('language.tpl') #3 /var/www/vhosts/renosommerhalder.ch/httpdocs/setup/controllers/language.php(53): modInstallSmarty->fetch('language.tpl') #4 /var/www/vhosts/renosommerhalder.ch/httpdocs/setup/includes/modinstallrequest.class.php(75): include('/var/www/vhosts...') #5 /var/www/vhosts/renosommerhalder.ch/httpdocs/setup/index.php(89): modInstallRequest->handle() #6 {main} thrown in /var/www/vhosts/renosommerhalder.ch/httpdocs/core/model/smarty/sysplugins/smarty_internal_template.php on line 162


            It was not googleDashboard I tried to delete it was GoogleAnalytics http://modx.com/extras/package/googleanalytics2

            I admit I am a bid confused.
              • 3749
              • 24,544 Posts
              It looks like one or more critical files got deleted.

              I would copy the files in the core/, manager/, and connectors/, directories from the exact same version of MODX to your site. Be careful *not* to overwrite core/config.config.inc.php and the four config.core.php files:

              § MODX root directory
              § /manager/
              § /connectors/
              § /setup/includes/

              Then run Setup again.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 2901
                • 277 Posts
                BobRay Thanks a lot!

                I still have a question. Do you believe it is only a files related problem or can there be problems (paths etc.) in the DB as well?

                  • 3749
                  • 24,544 Posts
                  I think it's only missing files, but I could be wrong. Uninstalling things usually won't change any paths in the DB and the Setup error suggests a missing file. There's no harm in copying all the right files and running Setup to find out.

                  When an add-on contains files that already exist (because another component installed them), it may remove those files on uninstall.

                  If you uninstalled GA manually, you might have gone overboard in removing files. It's happened to me.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 2901
                    • 277 Posts
                    Well I did not remove anything manually. In package management I right clicked on the google analytics package and removed it via Manager.

                    There is one thing that concerns me. On installing I checked remove setup, so I have no original setup folder, I guess this may cause another problem right.

                    Could it be a good idea to upgrade right away to 2.1.5., I would then have a brand new setup folder, most probably with a proper config file.

                    Should I file this problem also as a bug report? In my opinion it is not normal to run into such problems, when deleting packages via manager.

                    Thanks for your support
                      • 3749
                      • 24,544 Posts
                      This isn't going to help, but I just looked at the GA code, and I don't see any way it could have done any harm on uninstall. It doesn't touch any existing files or System Settings.

                      I kind of have a rule about not upgrading broken sites (which I sometimes break) unless the new version is known to fix the bug I have. I think it's best to try what I suggested above first, but it's up to you.

                      If you still have the .zip file around from the install, you can pull those directories out of it. Just be careful not to overwrite the files I mentioned. If not, and you can't find a copy, I have a copy of both 2.0.3 Traditional and 2.0.3 Advanced that I can send you if you PM me your email address. Hopefully, you know which one you want. wink
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting