We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10512
    • 28 Posts
    I cannot log into the manager, and a blank page shows up on the site. Does anyone know what may have caused this error message:


    Warning: fopen(/home/......./manager/media/style//login.html) [function.fopen]: failed to open stream: No such file or directory in /home/....../manager/includes/accesscontrol.inc.php on line 129

    Warning: filesize() [function.filesize]: Stat failed for /home/......../manager/media/style//login.html (errno=2 - No such file or directory) in /home/......../manager/includes/accesscontrol.inc.php on line 130

    Warning: fread(): supplied argument is not a valid stream resource in /home/......../manager/includes/accesscontrol.inc.php on line 130

    Warning: fclose(): supplied argument is not a valid stream resource in /home/......../manager/includes/accesscontrol.inc.php on line 131


    I was working on a new page, and hit "Save" but the browser was hung up (my connection, I think) so I hit "Stop" and "Save" again. Can a bad connection screw everything up? The other issue is that my hosting company sucks and the server has been having problems all night too.

    I am downloading the entire site right now, at least it will let me do that, for back up.

    Thanks for any help on this - I am pulling my hair out.

    Catherine
      • 22303 MODX Staff
      • 10,725 Posts
      I’m afraid that sounds like file-system, PHP configuration changes (with errors), or similar problems with your hosting server if this just happened "out of the blue". If you provide more details about your host/configuration, someone might be able to offer additional advice.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The path to the welcome html file has // instead of the name of the Manager template. Somehow it’s lost the $manager_template variable.
          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
          • 10512
          • 28 Posts
          Hello,

          the hosting service is shared server...PHP 4.4.7, Linux Apache version 1.3.39, MySQL 4.1.22-standard. I had been getting "disk full" error messages all night and I could not transfer data through ftp or work with files and save to the server through BBedit. I was still able to work via the browser and was doing minor text changes when this happened. This site has to go live asap.

          I downloaded the site and the database, and set it up on my local machine running Mac OSX 10.4.10, MAMP-PHP 5.2.1, Apache 2.0.59, MySQL 5.0.37.

          I now get a totally blank site and manager with no error message- nothing. I am NOT a programmer, but I can do the basics.

          Any advice in order not to lose all of my work? I have all of the files etc...but do not like the idea of going through a fresh install and inputting all of that back in..perhaps that is what I will have to do though.

          Thanks,
          Catherine

          clarification - the disk full error messages are not due to my account, but to a mess that has been ongoing with my hosting company
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            You should be able to load it onto your local server, just make sure to edit the manager/includes/config.inc.php to suit your local database, and once you get it running go into the Manager -> Configuration tool and edit the file manager path and URL and the resource browser path and URL.
              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
              • 25663 MODX Staff
              • 12,272 Posts
              Don’t forget to back up your database. Then change hosts as soon as humanly possible. That’s way scary.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 10512
                • 28 Posts
                I am trying to get a database backup out of my host. As it happens, I cannot see the site locally either (I have installed everything from the server) and I don’t know how to salvage it. sad I have other test sites installed that show up just fine, so I know everything is working in the MAMP environment on my machine.

                As I do not know how many files could be corrupted, or whether it is just something in the database that I could fix by hand- I think I might have to install fresh and try to find my data for the website pages and re -input everything. Argh!~ I am really upset with this hosting company. I’m not familiar enough with MODx to know where to even begin fixing things.

                thanks for your help though....oh, and I did think it was a problem that the path in the error message has two slashes i.e. manager/media/style//login.html What would cause that?

                Catherine
                  • 33372
                  • 1,611 Posts
                  One of our hosts recently did some updates on their servers for a few hours and during that time I noticed that some of our MODx sites recorded "error 28" or "disk full" errors. I think that basically the MySQL server was unable to write to the drive during the updates and that was what caused the errors. In our case once the updates were complete the errors went away and everything was back to normal.

                  It sounds as if something similar happened to you while you were working on your site. It’s possible that the server went down (or some services stopped running), and in the process you lost your session variables and couldn’t login. It’s also possible that your database was corrupted while trying to write to it under these conditions, but MySQL is pretty robust so I wouldn’t assume that.

                  The first thing that I’d do is to verify that your data is intact. If you exported text SQL files then you should be able to just open those in any text editor and review them. If not, try using a tool like phpMyAdmin. Do all of the tables show up without errors, and does the data look about right? Check the last page that you were editing to see if those changes made it into the database or not. If the data seems to be intact then you can stop worrying. Any problem other than data loss can be dealt with.

                  Getting the site to run on your MAMP setup shouldn’t be too difficult, but I would run the installer as an update (after importing your data into the database, of course) and make sure that all of the database connection settings are correct. Of course you also need to check your file permissions, etc. But if your goal is to get the site back up on a public server quickly, then setting it up locally seems like it might be a waste of time to me (unless you want to be able to work on it while your public site is down).

                  As for your public website, there could be a lot of reasons why it’s not working. Has your host given you any information at all? If you didn’t change anything before this happened then it’s likely that it’s something that your host did, and that also means that they may be the only ones who can correct it.

                  Can you connect to the database on the web server? Can you run a simple PHP script? If other things all seem to run but your MODx installation doesn’t, then retrace the installation steps and confirm that everything is still setup properly (.htaccess, file permissions, etc.). If all else fails, try running the installer again as an update.

                  But first and foremost, get a backup of your database and make sure that it’s intact! Even if you had to start over from scratch on another host you’d be fine as long as you have that data. I have become a compulsive user of the Backup feature in the MODx Manager (which just does an SQL export), and it’s saved me a lot of grief quite a few times now.
                    "Things are not what they appear to be; nor are they otherwise." - Buddha

                    "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                    Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                    • 10512
                    • 28 Posts

                    Getting the site to run on your MAMP setup shouldn’t be too difficult, but I would run the installer as an update (after importing your data into the database, of course) and make sure that all of the database connection settings are correct. Of course you also need to check your file permissions, etc. But if your goal is to get the site back up on a public server quickly, then setting it up locally seems like it might be a waste of time to me (unless you want to be able to work on it while your public site is down).

                    ZAP- I really appreciate your post. I do have the SQL file, and it looks pretty normal when opened in my text editor. I am going to try your suggestion to run the install as an update on my local server, just to see if I can get it working somewhere and see if this file is corrupted. I don’t trust dealing with my host server until they send me some reply or indication that they have fixed the problem. I did get a canned response from them a few minutes ago saying they are working on the server.

                    Usually, I would say this a great opportunity to learn MODx better, but I am on an awful scary deadline!

                    Catherine
                      • 33372
                      • 1,611 Posts
                      Well that’s good news! My experience with corrupted MySQL files is that you usually can’t even export them to text once they’ve been damaged, so I expect yours will be fine. And in order to learn MODx better your host first has to get the server working so that it will run, so hopefully you’ll get that chance soon enough.
                        "Things are not what they appear to be; nor are they otherwise." - Buddha

                        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options