We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19872
    • 1,078 Posts
    Perhaps I should delete the core/cache and run the setup now just to see if that clears things up?

    Would be good to know what's still causing that specific error.
      • 19872
      • 1,078 Posts
      Sidenote, with a bit of good news. I just quickly checked my other MODx site I'd been having issues with, and I don't see any of the malicious php cache files and there was no user added, and no plugins that I did not install myself. Phew!
        • 19872
        • 1,078 Posts
        Sidenote, with a bit of good news. I just quickly checked my other MODx site I'd been having issues with, and I don't see any of the malicious php cache files and there was no user added, and no plugins that I did not install myself. Phew!
          • 3749
          • 24,544 Posts
          Quote from: mmcgee at Jul 22, 2014, 02:33 AM
          Perhaps I should delete the core/cache and run the setup now just to see if that clears things up?

          Would be good to know what's still causing that specific error.

          Definitely run Setup, but don't proceed with it unless the "Upgrade" checkbox is checked.
            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
            • 19872
            • 1,078 Posts
            Ran the set up. All seems to go well. But same issues with disappearing items in the tree still persists. And then the blank page.
            I deleted the core cache, and was able to log back in, but now, no web pages display on the public side.
            Still getting those same errors.

            [2014-07-22 00:51:31] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0
            [2014-07-22 00:51:31] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: This function may only be used against URLs
            [2014-07-22 00:51:32] (ERROR @ /connectors/modx.config.js.php) Error caching lexicon topic lexicon/en/core/resource
            [2014-07-22 00:51:35] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0
            [2014-07-22 00:51:35] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: This function may only be used against URLs
              • 19872
              • 1,078 Posts
              I don't think that the install created a new index.php.
              I'll rename index.php.bak back to be index.php
                • 19872
                • 1,078 Posts
                I continually, eventually get the white page. I think delete core/cache and the site will load again and I can access the manager.

                Not sure if this is normal or not, but each time I delete the core/cache, the number of items is different. 12 earlier, now 14, and for a while it was 13 files deleted. Perhaps that's normal?
                  • 19872
                  • 1,078 Posts
                  Would SiteCheck be of any assistance in my current situation. I was looking at it yesterday thinking I should get it.

                  Marc
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Your server is configured so you can't use fopen() by URL.
                    http:// wrapper is disabled in the server configuration by allow_url_fopen=0

                    This is attempting to fetch a Gravatar image. I think the ability to disable this feature will be released soon. In the meantime, you should be able to simply remove that whole Gravatar section from /manager/controllers/default/header.php beginning with line 105 to line 119, leave line 120 (now line 105) and remove line 121 (now line 106). The getUserImage function should look like this:
                        public function getUserImage()
                        {
                            /** @var modUserProfile $userProfile */
                            $userProfile = $this->modx->user->getOne('Profile');
                    
                            if ($userProfile->photo) {
                                // First, handle user defined image
                                $src = $this->modx->getOption('connectors_url', MODX_CONNECTORS_URL)
                                    .'system/phpthumb.php?zc=1&h=128&w=128&src='
                                    .$userProfile->photo;
                                $userImage = '<img src="' . $src . '" />';
                            } else {
                                    $userImage = '<i class="icon-user icon-large"></i>';
                            } 
                    
                            return $userImage;
                        }
                    

                    You may or may not see the default image, but at least you won't get that error any more.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 19872
                      • 1,078 Posts
                      Thanks Susan. I'll give this a try.

                      Basically getting tons of the same wrapper error with two new ones thrown in related to cachng actionmap and lexicon topic.

                      [2014-07-22 01:08:11] (ERROR @ /connectors/lang.js.php) Error caching action map mgr/actions
                      [2014-07-22 01:08:11] (ERROR @ /connectors/lang.js.php) Error caching lexicon topic lexicon/en/core/resource
                      [2014-07-22 01:10:08] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0
                      [2014-07-22 01:10:08] (ERROR @ /path/to/folder/manager/controllers/default/header.php : 115) PHP warning: get_headers() [<a href=’function.get-headers’>function.get-headers</a>]: This function may only be used against URLs