Installing and upgrading help

Migrated to new host & now no images showing

 
Picture of Tina Smith
Migrated to new host & now no images showing
 

I managed to finally get my Moodle install properly migrated...using this method: https://docs.moodle.org/35/en/Moodle_migration#Recommended_method

But now there are no images on my site. All the image links are broken.

I've been trying to do some of the things mentioned in this thread: https://moodle.org/mod/forum/discuss.php?d=330202  but so far nothing's worked. 

I did search and replace with the server IP addresses, though I don't know if that is something that would be in the database...my URL hasn't changed, so I don't need to change that. I only moved hosts.

I purged the cache on my browser and on Moodle.

As far as I know I redid the config file correctly.

I don't know what they mean by "slashargument" in that thread, or else I'd try that too...

I did move my Moodledata folder...It was previously installed with quick install and I put it in .cpanel. I don't know if that might be part of the problem? Should I put it somewhere else? I read a thread that said to put it in /var...but I don't see that so I just stuck it in .cpanel. Will moving it now break anything further? 

I did not yet upgrade Moodle, but it does need an upgrade. It is 3.4.2.  I also think there's some other things wrong with Moodle, as the links in admin aren't properly working...when I click on things it doesn't take me to the right admin pages and I have to go to search to find them.

I am wondering if maybe I should just upgrade? But wonder if that might mess things up worse? Is it worth trying though? I suppose I can always start over again...I do still have all the backup files...

Not sure where to go from here...

 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers
Is it just images or other stuff? Can you download files that you previously uploaded? Does your site/theme look correct other than the missing images?


- switch on Debugging (all the way to Developer and click display messages)
- right click on a missing image and display it in a new tab/window. What does it say?

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Once I'm able to get in there again...

Here's something interesting...I had to reset the password once I got it all moved over. No surprise, I hadn't written down the password so I just figured I forgot it when none of my usual passwords worked. So I reset it and was able to get in. This time I did write it down. Only, now it no longer works. I KNOW I wrote it down correctly.

Also, as I mentioned before, I think...when I click on links in the site admin (yesterday, when I was able to get in), they don't take me to the proper places...they don't take me anywhere actually, they stay on the same page. I have to use the search box to find the things that I need to do. So clearly there are more things wrong with the site.

The theme appears to look right...it's been awhile since I looked at it, so it's hard to remember...I haven't worked on it in awhile, it's sorta been under construction for months. 

I will reset my password and see if I can get in again and find my way to debugging. Also, I put it in maintenance mode yesterday...probably not necessary since I doubt anyone ever goes there...but I can turn that off and share the link if you think that would help if you could look at it?


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

EDITED AFTER SPEAKING WITH MY REGISTRAR...

Ok, I'm in...had to reset the password...

Just want to note here, because I hadn't looked around this thoroughly before. In site admin, I'm clicking on all the tabs and NONE of them go anywhere. They all just keep me on the same page I start on. So: users, courses, grades, plugins, appearance, server, reports, development...nada.

Oddly enough, though, some of the links on the page do actually take me to their pages...not notifications...that doesn't work...but the next ones...registration, advanced features, assignment upgrade helper...those all take me to their appropriate pages. 

I'll check the rest of the links later if that is something that I should look into...

I just turned on debugging (had to use search box to find it)...and it won't save it. I set it to developer, as you said, and clicked save, and every time, it goes back to none. Clearly things are quite wonky. I am starting to wonder if I should just do a fresh install? Is it a good idea to fresh install and just import the old database and moodle data?

Could I create a fresh database, import the old info...then install a fresh moodle import...then copy the old moodle data? And edit the config files however they need editing? I'm not sure why I needed to copy the old moodle install at all...isn't everything that I customized in the database and moodledata? I am not aware of exactly how it works.

If I made sure to get a copy of the same version of Moodle that I had before...couldn't I just do a fresh install ...import the database and moodle data, and then once everything is set up, then I could finally upgrade?  Or is there info within the moodle core files that is customized as well?

I hadn't actually logged onto that old install of Moodle for months, so I don't even know if there might have been something wrong with it. The only way I could find out would be to re point my nameservers back to the old server. And I worry that my registrar is going to penalize me if I keep changing the nameservers.---OK NEVERMIND...I just spoke with my registrar and they said I could reset the nameservers 10 times a day and won't get locked out. So I'm just going to go and reset back to my old host and log in over there and get in and update the thing on the old server and see if that doesn't fix all this and THEN migrate....see if that might resolve all this....we shall see!!  Hopefully I don't make things worse, lol!

 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Firstly, understand that doing a "fresh install" and then importing the database is completely pointless. Effectively, what you are doing is expending effort creating all the tables and data for an empty site and then completely overwriting it with the original site data. The new installation was pointless. The only exception to that is to prove that running a Moodle site from scratch on new hosting is actually possible. 

Please check your config.php contents *carefully* and make sure that are correct. Compare with config-dist.php where all the options are fully commented. 

Also, find section 7 of config-dist.php and copy it over to your config.php. Uncomment the debugging lines (it's all explained in there). This forces debugging on. Do you now get warnings or messages. If you have access to it, can you also check your web server's error log. 

It's so broken that I'm guessing it's probably only a simple error. 

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

New problem.   https://homeschoolrealm.com/moodle/  Can't even get it connected to database now.

I pointed nameservers back to old host and got back into the old install and updated everything and got it all working right. So by the time I was done, I had Moodle updated to 3.5 and all plugins and themes updated to latest. Everything was updated and working properly before I started backing up and exporting this time.

Then I followed these instructions again: https://docs.moodle.org/35/en/Moodle_migration

Obviously I missed something somewhere. 

My eyes are glazing over at this point from doing this for so long and still not really knowing much about what I'm looking at.

So I guess the first thing I have to figure out is how to get the database to connect properly again. Any ideas?

I am wondering if I'm missing something in the config file...but I keep going over and over it...I'm at a loss.

 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

What's the exact error?

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Sorry, I didn’t say that’s why I posted the link... so you could go see.

It’s: 

Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php


 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Again... it would be useful if you'd enabled Debugging on your config.php file. 

The config file has a database type, the hostname, database name, username and password. One or more is wrong. Failing that, the database itself hasn't been set up properly to allow access from wherever Moodle is. You should check the instructions supplied by Siteground for databases. None of this is Moodle specific. You would have exactly the same issue if you where setting up Wordpress, for example.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Ok...my eyes are glazed over from 2 days of working on this and googling like crazy and trying to figure this stuff out...so I missed something. 

I went to Siteground support and they immediately saw that I had neglected to recreate the user and connect it to the database, DOH! I swear I thought I had...but I had deleted and recreated a couple times so apparently the last time I missed that step...NO IDEA how I could have missed that, but there ya have it.

BUT! The site updated and is now 3.5, shows the new theme I picked when I upgraded it. But has ALL the same problems it had before. Solved none of them.

I'm back to none of the site admin links taking me to any of the actual admin pages....none of the images are showing...and when I try to enable debugging, the setting won't save. And I'm back to having to reset my password to be able to get in, because it won't retain my current password. So apparently this had nothing to do with me needing to update everything. Something else is wonky.

AND I went to see if I can log into Putty to try to enable debugging in command line and for some reason....and I've not touched anything related to it that I can think of....I'm back to that same error message I got before when I try to log into Putty. So I can't even get in there.

Sigh. I'm completely at a loss now. And exhausted from days of wrestling with this. I am going to have to rework a lot of my courses once I finally get this working again as it is, since they are quite old and unused for some time...I'm starting to wonder if I should just copy/paste the info I have in here into google docs and just start from a fresh install. But that's a LOT of copy/pasting. Plus I have lessons created with the lesson module that I wouldn't want to have to recreate. 

Is there an easier way to do this? I'm beating my head against a wall here.

Here's the URL if you want to take a peek, though without debugging on, I don't know that that will tell you anything:  homeschoolrealm.com/moodle  (I will note that the format and everything is totally messed up right now since I switched to a new theme and have not reconfigured...I've not been promoting my courses for some time, and it's all basically on hold right now. Once I get all this figured out, a major overhaul is in order and everything will be revamped.)

I'm going to go back to trying to figure out how to get Putty to work at least....if I can get access to command line again, maybe I can go from there...though I have NO idea why it stopped working again. Before it didn't work because I had the wrong username. Now I'm using the right username and it's giving me that same error!



 
Average of ratings: -
Picture of AL Rachels
Re: Migrated to new host & now no images showing
Core developersParticularly helpful MoodlersPlugin developersTesters

When I go to your provided link it looks to me like the site is up and running but is in maintenance mode.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Oh that's funny because I did take it out of maintenance mode. Must be because it won't save any changes. SIGH!!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Yup, won't save it. Well that's not helpful, is it? ARGH! More banging my head against a wall.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

If this all ends up being a super simple thing I'm going to scream. But I would also be very very happy to just have it resolved. This is absolutely MADDENING. I'm spending entirely too much time and energy on all this. But I need to get this back up and running so I can finally get these courses revamped and back up for sale again....hopefully by the start of next school year. And it's going to take me some time to get them all revamped. 

I had no idea the migration was going to prove to be such a problem. I am wondering seriously if just starting from scratch and copy/pasting the info might be easier at this point.

 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

You probably don't want to hear what I have to say, but...

The migration is typically a simple thing.

"Learning" how to do a correct migration s what is not so simple.

Nowadays, I can migrate my small moodle pretty quickly.  But I was once like you, it took me a long of time learning everything.

Please realize that often in the computer world, everything has to be correct.

Somehow, I didn't catch if what you have been doing with your "moodledata" directory?  Have you been moving this around, too?  (If I just missed it from the discussion above, no need to answer.)

Keep at it!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Thank you. I appreciate your patience and kindness.

I truly would be happy if this turned out to be something simple...and I could learn how to do this simply in the future.

I didn't talk much about moodledata in the other comments, as I recall.

I wasn't sure where to put it as the original install was done via Quick Install on my old host. When I migrated I did the install myself, manually. And so I chose a different directory to put the folder in. 

Before, on the old host, it was in the quick install directory...now I have it just in .cpanel.

I didn't do any other moving of it though, and I did indicate in the config file where it is.

I do wonder if I set something up wrong in the config file. But I've gone over and over it and don't know WHAT! It all looks right to me.

One thing...I don't know what $CFG->admin  is about....so I don't know if that info has changed in this migration since I don't know what that is referring to.

 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

For what it is worth, Tina, a little while ago I made some videos showing how I install and migrate my moodles.  If you watch these videos, maybe they will help.  Maybe something will click.

Here is my webpage where you will see some of my videos.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Thank you Rick! I went to look for the migration videos but I don't see them...there's a sentence about it, but no link. The other links are to different topics...did I miss it somewhere?

 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Tina, it's #2 on the list.  This is about all that I can do to help.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Oh ok, I'll check that out...it says its a video of preparing to migrate and upgrading, so I didn't think that was it...then there's a line a few lines down that looks like it's about migration but there's no link on it.

Ok, I'll check it out, thanks.

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Rick, I watched #2, and it isn't the migration video...it is entirely about upgrading. Very informative video, and interesting for me because I had no idea how to use command line, so it was interesting to see in action...but I am already very comfortable with upgrading Moodle, since I've done this many many times via cPanel. I am, however, very interested in seeing your migration video! smile

Both of your videos #2 and #3 both say that the migration video is coming next. But it's not linked in the list...just a heads up. There's a sentence that says: "A video showing how I migrate a copy of my production Moodle to my new Moodle."  But it's not a link.

Let me know if you figure out what happened to that video! smile

Thanks again for the info!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Just had a thought...I haven't used any super complex plugins on my courses (that I can think of)...other than lessons module, they are all really straightforward so far...

Would it be simpler if I just installed a fresh Moodle install and just went back to my old host and exported each course individually (there's not THAT many) and imported them to my new install? The theme is something I'm totally revamping already, so I don't care about that...and I imagine I can export and import the users (there's not many of them either)....

Would this be a simpler and cleaner way to do this? Is that possible??

I'm assuming course backups also backup all the images and files...

If this could work, it might be something much easier for me than spending more days poking around trying to figure out what the heck broke in this migration...

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Finally am able to right click on a missing image and open in new tab...this is what it says:

This site can’t be reached

The webpage at https://homeschoolrealm.com/moodle/pluginfile.php/5/user/icon/eguru/f2?rev=13might be temporarily down or it may have moved permanently to a new web address.

ERR_SPDY_PROTOCOL_ERROR

Also...I found these instructions: https://docs.moodle.org/35/en/Debugging#In_config.php

And added this code (of course, without the slashes), to my config file:

//@error_reporting(E_ALL | E_STRICT); //

//@ini_set('display_errors', '1');//

//$CFG->debug = (E_ALL | E_STRICT);//

//$CFG->debugdisplay = 1; //

and now the drop down in the admin is staying on developer mode for debugging.  So now my question is where do I find the error logs? I have Siteground hosting, Linux. 

Oh and I finally got Putty working again...had to redo the setup process again for some reason. But at least for now, it appears to be working. So I guess I can try command line if need be. Though I'll need specific instructions.


 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Ok great! Took me some poking around, but I finally figured that part out...

I hadn't looked at those logs because they were listed under the section called "visitor stats", so I thought that was just about web traffic, didn't occur to me this would be relevant.

Ok, so I finally extracted the files for June and figured out how to view them with Notepad++...and searched for /moodle so it didn't bring up the articles I have on my main site about what I was doing with Moodle (which is what I was seeing a lot of before)  and finally am about to narrow down just the lines from the Moodle install. 

I had no idea what I was looking at, so I found this video: 

  and learned about what the code means...

Still trying to sort through it all... I also found this page: https://httpd.apache.org/docs/1.3/logs.html#common and am trying to use it to help pick through the info... (I post these to make sure that I'm on the right track with my research and what I'm learning.)

I am seeing lots of 503s, which makes sense because its stuck in maintenance mode. And lots of 301s, which I am guessing might be the old redirect I have had in pretty links to point /noodle to /moodle because I changed the name from "Moodle Homeschool" to "Noodle Homeschool" (with the tag line "use your noodle!") when I found out that I couldn't use Moodle's name.

Some 200s and some 404s. I'm still trying to figure out what the number to the right of these numbers is? 

The things that loaded correctly (200) were theme related, which makes sense since the theme looks mostly right (only a little wonky, in that some of the links don't click)...

A couple lines that totally confuse me because they refer to /moodle but then the URL has one of my other domains that isn't related....so I'm not sure what that is about...those 2 sites shouldn't be connected!

Yesterday it logged 301s and 404s AND 200s...all different javascripts. 

Not really sure what any of this means, but hoping someone can help me sort through it?



 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

P.S. Putty is not working again. WHAT THE HELL???? I'm so seriously fed up with this. Hoping everything is connected and once figured out it all falls in line.

 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

I don't have time to make a comprehensive reply but make sure you are looking at *error* logs. The access logs are irrelevant. In the error log, anything that starts 'Notice', 'Warning' or 'Fatal error' is bad news. 

To force maintenance mode off, try (in your config.php) adding the line

$CFG->maintenance_enabled = false;

Also check that you do NOT have a file called 'climaintenance.html' in your 'moodledata' directory. 

 
Average of ratings: -
Picture of Rich Debonair
Re: Migrated to new host & now no images showing
 

Hi Howard and Tina,

I have been following this thread because i have exactly the same problem ie images are not showing after migration to Moodle 3.5

I turned on Debugging as Howard advised and clicked on one of the images and the top of the error messages says:

===

pix_url is deprecated. Use image_url for images and pix_icon for icons.

line 267 of /lib/outputrenderers.php: call to debugging()

line 214 of /theme/eguru/renderers/course_renderer.php: call to renderer_base->pix_url()

line 63 of /theme/eguru/layout/frontpage.php: call to theme_eguru_core_course_renderer->promoted_courses()

line 1261 of /lib/outputrenderers.php: call to include()

line 1191 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()

line 112 of /index.php: call to core_renderer->header()

===

When i make the changes where pix_url occurs in the code, and save, i get this error:

is currently unable to handle this request.

HTTP ERROR 500

Can you help me here?

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Sorry, I have no idea, but hopefully someone else does.

 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

You should really start a new thread - I don't think your problem is related at all. 

However - the answer to your *specific* question is simple. The optional theme you are using is not compatible with Moodle 3.5.

 
Average of ratings: -
Picture of Rich Debonair
Re: Migrated to new host & now no images showing
 

Thank you, i am now using another theme and its working plus i was doing something else terribly wrong ie letting 2 different versions share the same database!!!!!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

OK, I contacted support about my Putty issue and found that I have to load the key every time I use it...ok, now that I know that, no problem.

So I got that working again.

But I was so tired from beating my head against a wall over this for about 3 days straight of doing nothing but Moodle, that I've yet to get back to this. 

I have one other thing I'm working on for something else that I need to get set up pronto so I can start taking orders on it...then I'm coming back to this Moodle issue, which I still haven't solved.

I did try to go back to my old install (I paid for another month at old host so I still have access, and pointed the nameservers back over there again) and for some reason THAT is broken now....no idea... 404 error there. I just gave up on that, I don't have time to troubleshoot something new. When I left it, it worked just fine and I've not touched it since.

Now I'm back to thinking I'll just do a fresh install of Moodle on the new host (instead of copying old Moodle install) and get that working first...and then copy the old moodledata folder and import the old database into the new?  But I'm trying to figure out the best order to do this, if it's even possible...  I haven't completely understood how this works... so if anyone can tell me if this is even possible, or if there's a way to make it possible, I'd love to hear it!

Since I'm not sure what's breaking my install, I'm really just trying things out to see what will work...


 
Average of ratings: -
Picture of Howard Miller
Re: Migrated to new host & now no images showing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

I would normally say - and I think I have - that doing a fresh install is pointless because you're just going to overwrite it with your backed-up data. And that's true. However, given all the trouble you have been having, I would just go and try it. If it works, it's a win for you and you've also proved that Moodle actually runs on your system. 

I'm feeling a bit guilty about the ssh thing. Although I still recommend getting to grips with the command line do remember that you can get just the same results with cPanel. If you feel more comfortable with cPanel then use that. Once you get your head around the command line you won't go back but I'm worried that I've just thrown another variable at you to confuse things. 

 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

I am thinking the same way, Howard.  A fresh install might be the way to go.  Once a brand new moodle is installed, plugins added to match the old install, and a course and a few students added to build some confidence that Moodle can indeed run on this new server, then the migration can be done.

The migration involves replacing your new moodledata folder contents with the old, and replacing the MySQL new data with the old.  (Tina, how "big" are your moodledata folder, when compressed or "zipped," and the size of your MySQL backup file?)

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Moodledata compressed is 219kb

MySQL backup is 41.1 MB

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Adding what might be two cents and thus adding to confusion ... not the intent ... however ...

ERR_SPDY_PROTOCOL_ERROR

That error is Google's PageSpeed ... which is great for static pages created
by some web page editor, but not good for dynamic web sites ... use DB ... and that's Moodle.

The domain has a WordPress at document root (probably public_html) of the site.

** In that directory, are there a bunch of folders/directories that begin with wp_?

** What plugins do you have installed in the WordPress?

** Any plugin that controls redirects?

Reason asked ... many links in the WP that show what is typically a directory
location ... like the following:

https://homeschoolrealm.com/book-of-the-week-i-wonder-whats-under-there/

This part of the URL:
/book-of-the-week-i-wonder-whats-under-there/
looks like a long directory name, doesn't it?  It's not.

Different than this:
https://sos.tcea.org/blog/index.php/2017/07/09/git-for-moodle-admins/

Note the WP blog on the second link goes to a blog directory.  WP rules apply
only to /blog/ and not / nor to /moodle35/ on that site.

In the OP's setup, WP is at the document root of the domain and OP is trying
a typical migration to /moodle/ which probably was performed exactly as described
and correctly as well.   But, WP setup/plugin is controlling images .. thus images
in Moodle are broken.

Then there is the hosting plan OP has with SiteGround.
https://www.siteground.com/shared-hosting-features.htm

** Do you have the GoGeek?

IF OP, eventually learns CLI and the value of Git for Moodle installs/updates/upgrades
he GoGeek is the only one that provides Git.

In the link to the plans/features I see this:
"We Allocate the Resources You Need"
What the heck does 'Geeky' mean?

In reading their FAQ's and searching for 'Moodle'
https://www.siteground.com/kb/detailed_moodle_requirements/
"SiteGround servers are fully optimized to meet all Moodle requirements and to provide the best hosting environment for it."

it claims to be one of the best
hosting sites for Moodle.
https://www.siteground.com/lms-hosting.htm

And the page points to the same 3 hosting plans.
Nothing special there.

How to install Moodle on my account?
https://www.siteground.com/kb/how_to_install_moodle_on_my_account/
Alternatively, you can install Moodle manually by following the steps from our tutorial here.
https://www.siteground.com/tutorials/
but one cannot find the tutorial for installing Moodle manually!!!

Think OP needs to check out a new offering ... they call it Hosting Plus

https://www.siteground.com/blog/hosting-plus-is-here/

Please respond to the questions (**) above.

'spirit of sharing', Ken


 
Average of ratings: Useful (1)
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

** In that directory, are there a bunch of folders/directories that begin with wp_?

Yes, HomeschoolRealm.com is a Wordpress install.  Moodle is installed in a subdirectory on HomeschoolRealm.com.


** What plugins do you have installed in the WordPress?  A bunch...

** Any plugin that controls redirects? Yes, I have "Redirection" by John Godley


The reason for the URL structure is that I have permalinks set to  "post name". (vs the options that use dates.)


** Do you have the GoGeek?

I do not. I have GrowBig





 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Now one follow up question and something to try.

Follow up: does the 'redirection' plugin have rules?  or a configuration screen that would allow you to 'exclude' a directory from it's control?

And something to try ...

I think this is now in every install ... in moodledata, there is an .htaccess file created by the install script.

It contains:

deny from all
AllowOverride None
Note: this file is broken intentionally, we do not want anybody to undo it in subdirectory!

Are you sure the moodledata directory compressed is '219kb' ... that's really small for a moodledata directory from a site that's been used!

Example of some sandbox sites probably not used as much as a homeschool moodle:

65M    ./moodle35data

3.1G    ./moodle30data

86M     ./moodle33data

The largest directory in moodle??data is filedir.

If old site is still up or the server where it was hosted still accessible, re-compress the moodledata directory and see if it's not larger.

If you followed the directions from https://docs.moodle.org/35/en/Moodle_migration#Recommended_method that said to make a compressed file of only filedir of moodledata.   The other directories on a restore of the site would be rebuilt by moodle.

Now before you start to restore the site, you must manually create a 'moodledata' directory with the correct ownerships and permissions ... same ownerships/permissions of that you see on wp- files.  The zip/tar ball of filedir from old site should create a 'filedir' directory in moodledata.

Re-read the section of the above url entitled:

"Copy moodledata from the old server to the new server"

What was your original Moodles version?

In your moodledata directory, create a hidden .htaccess file with the above contents.

Then move moodledata to the same location as your 'moodle' code directory - which is also where you see all those wp- directories.

Edit the config.php file of the moodle site to reflect the new path to moodledata.

Also, the theme may not be compatible for upgrading.  So you can add a line to config.php of Moodle that sets the theme to be a stock theme from the Moodle code you have.   Look in moodlecode/theme/ and you'll see the names of the stock themes.

Example: you see a 'clean' and a 'more'... in config.php file add a line:

$CFG->theme='clean';

Yes, that will hard set theme ... we can deal with that later after getting the site accessible and you can see/log into it consistently ... with no errors.

Try to hit your site.

Do the images that didn't show before show now?

Also test security of the moodledata directory:

https://yoursite/moodledata/  should not list any directories.

https://yoursite/moodledata/filedir/ should not also.

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Woah, a lot there. I totally appreciate you taking time out of your weekend to try to help me out!!

I am not fully understanding everything you wrote so I will address the things I do, and I'll go from there...

First of all you said something about maybe the theme might not be compatible for upgrading. Before I tried a second shot at migrating, I pointed nameservers back to old host and fully upgraded everything on old host. So everything was peachy. Actually I even picked a new theme. Hadn't even had a chance to customize it yet...figured I'd play with it once I finished migrating it. But it worked fine on the old host, with the updated version of Moodle before I tried migrating again.

Now, I am wondering if maybe I should try to figure out how to get back into that old install again...because maybe it would be easier...I tried to go back AGAIN and for some reason (I didn't do ANYTHING differently, that I can think of), I got a 404 message and cannot get back into the old install in the old host anymore. No idea why. If I could get inside, I'd just export the courses...there's not much there. It's mostly unused. But I don't want to have to recreate what I did create, of course. That was a LOT of hours of work to create!

I just don't have a whole lot to move really.  But I will try to recompress and move the moodledata again since you think that's too small. Certainly won't hurt to try.


I would like to also point out that it's not just broken images that is the issue I was having with the migration...the internal links seemed to be wonky as well...all the links to the site admin menus went nowhere when I was in my newly migrated Moodle. So it was pretty dang messed up. Not just images.


So many issues here and I don't know what I'm doing, so I'm just trying to figure out the best way to move forward.  I appreciate all the input y'all are giving me....it's very much helpful to try things and see what works. 

Ok, I'm going to go back and look at your post again and see if there's any questions I can answer.... will start a new post since this got long.


Thanks again! smile

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Ok, sounds like no issue with theme.

Old server ... where is that hosted?   May not be able to get the site up and running by an internet fully qualified domain name, but the DB, the moodledata directory, and the moodle code are accessible via cPanel/Other and one could make a backup of those.

As far as wonky looking after you got it restored ... well, yes that will happen to anyone migrating from one domain to another server IF the URL has changed.

There is a tool in moodle admin called search and replace ... where one searches for old site URL and replaces with new site URL ... http or https.

That does fix images not found as moodle uses the wwwroot variable in the config.php file to build full URL's to *all* internal resources.

So you could have been really close to getting the site migrated and working ... but didn't know it.

Now if you can get a backup of moodledata, moodle code, and a DB dump off of the old site, I'll make a one time offer ... I'll setup access to another server where you can upload those backups - so I can inspect ... not only that, but I'll attempt an install on that other server to see what issues there might be with a site restore.

If interested ... PM me for more info.

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Sorry, I'm not actually answering all questions ...in last post and this one...I'm trying to shoot off quick answers when I can...I WILL get back to both of your posts with more answers as soon as I have more time...probably a little later today...Just want to quickly answer the things that I can quickly address...

I didn't change the URL. URL is the same, I only changed hosts. I went from Host Gator to Site Ground. NOW, I DID get an SSL with the change though.... would I need to do search and replace for that? I did not have https on Host Gator (old) but I DO on Site Ground (new).  That never occurred to me.  See...this is why I need more brains to help me think through these things! LOL!


I already have all the backups from the old host still. Have the moodledata and database...even have the old backup of the install...I just thought that might have been where the problems were so I wasn't going to use that when I tried to reinstall this time...  and I still have access to my Host Gator server...paid for another month until I sort this out. So it's still sitting there. I can't get into the Moodle install via login, but I can via cpanel.


More later.


 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Am not certain that anyone trying to help can actually follow what you've done/tried, etc.   Know this is sort of pressing to you ... at least until end of July ... so let's not go off into yet another direction just yet.

IF the domain was the same and the only thing that changed in the URL was http to https then that's all one needed to do in the search and replace tool ... http://domain/moodle/ to https://domain/moodle/

Notice that /moodle/ was in existence on old site ... and from what I'm able to gather then is still true on new host.

The business about backups ... think the backup of the moodledata directory on old system was botched ... either in backup or transfer of that backup.    Like I said before, moodledata backups on sandboxes I have are in M to Gigs.  You showed KiB (killobytes).   Now if the original moodledata backup file you downloaded is still in your possession, check the size.   The fact you have to upload that again means two transfers ... down then up to new.  Those transfers need to be in binary mode .... not ASCII/Text ... whatever you were using for FTP shoud have a setting for that.   Could be you uploaded the moodledata backup as ASCII/Txt and thus corrupted it ... result ... no images.

Oh, that offer ... is one time and has a 24 hour time limit ... now that it's Monday I too have 'gone back to work'.  (yes, even us 'retired folk') :\

'spirit of sharing', Ken



 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

It's ok, I totally appreciate the offer...I think I'm going to keep trying to poke around myself and see if the stuff you are teaching me is going to help me figure this out....I usually eventually hit on a solution with help from forums like these....it just sometimes takes awhile. But I don't give up! smile

I'm not actually in a big time crunch. (Other than the host...but I can buy another month if need be.) No one is waiting for these classes. It's a side project right now. I have other projects I'm working on as well... which keep taking priority, so I've yet to make time to get fully back to this... but I'm going to see what I can squeeze in this week because this has gone on long enough.

So if what you are saying proves true... perhaps its as simple as redownloading/uploading that moodledata file (I'll check the size on the original server), and doing search/replace for the https...cross my fingers and see what happens. If it doesn't work, I'll go back to trying a fresh install. Worth a shot!

Oh and I'm not using FTP, takes too long...I just zip within CPanel and download and upload and extract through that. I read somewhere that that can be more efficient and faster? Seems to work for me. Most of the time.  FTP was just taking AGES.

Going to poke around and see what happens! Hopefully I'll have some promising info when I get back!


Thanks again SO MUCH for taking time to help me!

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Well, all I can say is ... you are my kinda teacher!!!!  .... 'Never Give Up' is a mantra I would hope most teachers have ... with teaching and with tech!

Just 'thimk, before click!' (nope, spelled it right).  And one additional, take the time to jot down in notepad what you did. smile

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Aw, thanks Ken! I FINALLY got my other project (time sensitive) completed and I can get back to Moodle today...

I'm going in! First thing I did is check that moodledata file on the old server...  recompressed it and checked the size while still in cpanel. Still says 219kb.  mixed

I'm going to move forward and hope that's not a problem, since I don't know what else to do with that....

We'll see what happens!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Ok, found my first issue, I think...

I uploaded the backup moodledata and it looks like this:



I took a screenshot of the fresh Moodledata from the fresh install for comparison:



Looks like a whole lot of directories missing? I am trying to see if I have an old backup somewhere, but I doubt it.... no idea what happened here.

If this is the case, it is looking like maybe I might need to get on tech support with my old host (Host Gator) and figure out what happened to my old Moodle install....which I was really hoping to never have to deal with their awful tech support again....ARGH!

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Now I know you know this, but 219Kb ... is kilobytes .... add 3 zero's ... that's it.

A minimal backup of moodledata is the 'filedir' folder.

What's in there?

Here's a text clip of the ls command of a fresh 3.5.1 site with hardly any content.

[root@sos filedir]# ls
02  0f  1b  2b  41  50  6b  7e  8c  a1  b1  ca  da  f0  f6
0c  17  1d  2d  44  58  74  84  90  a3  b6  d1  e1  f2  find
0d  18  1e  34  48  5f  75  85  92  ad  b7  d2  e2  f3  warning.txt
0e  19  1f  3a  4e  63  78  87  93  af  bc  d5  e5  f5

Each of the above has a subdirectory and contained therein there might be a contenthash filename.

[root@sos filedir]# ls -lR d5 (list long recurse into the d5 directory)
d5:
total 0
drwxrwsrwx. 2 apache apache 54 Jul  6 20:01 69

d5/69:
total 5980
-rw-rw-rw-. 1 apache apache 6120960 Jul  6 20:01 d569d6960276637e8bc17120c2d9a9d90098274f

[root@sos filedir]# du -h ./d5/69/*
5.9M    ./d5/69/d569d6960276637e8bc17120c2d9a9d90098274f

It's one PowerPoint.

All that to say, there should be Megabytes in your filedir ... maybe in the Gig range.

'spirit of sharing', Ken




 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Well I think I may have reached another impasse...

I tried a fresh install of Moodle...which worked fine. Then I uploaded the backup Moodledata and imported the backup database...

Got these errors on import of the database:



 


My username on the new host is different than on the old. "tinamama" on the old... "homesc53" on the new. So I was thinking I could do a search and replace to fix that, but it doesn't appear to have helped any. Also, after importing all this, nothing has changed on my Moodle install this time. I can't even see any of my old content at all....presumably because of the errors.  On the plus side, all the internal links work this time...but that's little comfort since I have none of my content. sad


Unless you can give me some insight as to what may have happened here...I'm thinking next I have to go back to Host Gator and get my old install working again...which means having to go through the nightmare that is their tech support. With any luck, they can get it up and running and then maybe I can just export all my courses.


Any ideas you have, though...I'd love to hear them!

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

You must import the backup .sql file into a blank/new database ... contains NO tables and no data.  The  database you tried to import to already had tables in it from one of your test installs.

To create a new blank ... contains no data ... no tables ... DB.

https://www.siteground.com/tutorials/php-mysql/create-user-database/

To import the backup sql file taken from older site.

See section on

MySQL Import: How to restore your MySQL database from a backup

@ https://www.siteground.com/tutorials/php-mysql/mysql-export/

'spirit of sharing', Ken



 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Yeah, I figured that out after I posted...  and it worked! 

So I got everything up and running FINALLY....but I'm back to my original issue: NO IMAGES. And after clicking on a pdf file I am realizing that it's just files in general because no pdf and it also does not have my new theme that I installed before I tried to migrate it....

So basically...I got everything working again. And even all the admin links work! WOOHOO!!  But all the files are broken. I am wondering if this has to do with that too-small Moodledata directory? Is that where those files are stored?

I'm guessing that's the case...and that I will have to talk to Host Gator tomorrow...hopefully they can help me resolve what the heck happened to that directory in the last couple weeks, because it worked just fine when I last was in there...

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

There is no guessing here ... the problem is the transfer of the contents of moodledata ... especially the 'filedir' directory.   That's where all files you uploaded to the moodle via the Moodle interface are stored.   The reason the images for the theme display is simple ... the images for a theme are stored in moodlecode/theme/[nameoftheme]/.

If you transfer anything from old site to the new site you now have running, transfer *** ONLY *** filedir.

Unfortunately, think you are going to end up with 'orphaned' files - files that are in filedir but there is no reference to them in mdl_files table,  or references to files in the mdl_files table and the files are not in the sea of files in filedir.

But, one could find those broken links to files in courses and edit them - re-upload .... yep, lots of work ... but doable.

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 
I am going to try talking to Host Gator today and see if they can fix the

old install. Seems like that would save me a lot of work.



But if that doesn’t work, I know I have alllll my files saved so I can just

reupload, like you said. What a pain, but like you said, doable. At least I

know the content is not lost...all those words and the format. That’s the

most important part. This I can piece back together, if need be.



But I am going to give Host Gator support a shot today. Who knows? Maybe

they will surprise me? Lol!



Thanks again!!







On Wed, Jul 11, 2018 at 10:42 PM Ken Task (via Moodle.org) <
 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Ok Ken, I'm IN! I don't know what happened, but I talked to Host Gator tech support about my site being down (I was getting 404 errors on the old host), but they said it worked on their end...so I tried a different browser and I'm IN!  Weird. But whatever...I don't care about why it does or doesn't work on Host Gator...since I'm not staying...I just need the Moodle install to work! 

I followed the instructions given elsewhere in this thread about turning off Maintenance Mode (which worked! THANK YOU to whoever posted that....I can't remember who...) and was able to log into my old Moodle install on my old host. 

And get this....all the images are there! Looks fine. BIZARRE, because I am looking at the moodledata directory and it still is missing all the directories and files! WHAT???

I double checked the config file to see where it's pulling from...thought maybe the moodledata directory might actually be somewhere else...this was maybe an old one or something...but no. It's pointing to this one!

So....what the heck??? How is it possible that I can see the Moodle install working properly, viewing properly, and yet that directory looks wonky??

If you want to look now, here's the link again: http://HomeschoolRealm.com/moodle  (I think the lack of SSL was maybe throwing off my browsers...since it has SSL on the new server, and not on the old....I don't know....)

If for some reason your browser doesn't like it...I got Edge to open it just fine. At least it has SOME use, LOL!

A thought just occurred to me...is there a way to export all the files from within Moodle? I'm going to go Google that and see what I can find.... not finding any info....


 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

You are soooooo close ... keep your focus ... purpose: make an archive of filedir directory contained in moodledata on HostGator (old site) so you can transfer that archive of filedir to new host.

From HostGator

https://support.hostgator.com/articles/how-to-generatedownload-a-full-backup

To SiteGround

https://www.siteground.com/kb/what_is_the_max_file_size_i_can_upload_through_cpanels_filem/

"Instead you are strongly advised to use FTP for bigger file transfers. You can use an FTP client that suits you best - FileZilla, CuteFTP, SmartFTP, etc."

https://www.siteground.com/kb/upload-website-files/

Note: check the contents of config.php file from your code to see where the moodledata directory path is pointed on SiteGround ... when the site is finally transferred correctly to SiteGround you will need to check the path to moodledata on that server and upload the archive of 'filedir' to go inside moodledata.

*** ALSO *** make sure you transfer files up to SiteGround as binary so files will NOT get corrupted on upload.

If images still don't show, its time to see just how good SiteGround Tech Support is gonna be.

They should be familiar with Moodle recommended requirements for location of moodledata by now - and should have a work-around for their customers that are attempting to run a Moodle.   Do NOT accept them pointing you back to Community forums here.   Make them earn their hosting $'s.

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Thanks! Unfortunately, I've not been able to do cPanel backups for years on Host Gator because apparently I have too many files. I always just backed up each Wordpress installation separately instead. (And in this case, Moodle.)  

I guess tomorrow I will go and purge all the other site files that I no longer need because they are all moved to Site Ground already. That should shrink it down plenty.

Thanks again! I'll go through your instructions carefully tomorrow after I delete all my stuff from Host Gator that I no longer need.


 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Well, that's the first time you've mentioned about the issue of not being able to backup the entire site @HostGator.    Big factor in getting an archive of just moodledata/filedir!

The issue there is to figure out how many directories of moodledata/filedir one can archive at one time because it's a 'sea' of non-humanly recognizable names.

Since Hostgator site is back up where you can get to it by name, etc., and you've said you will go into the moodle there and start removing files you don't need suggest going after any backups of courses you might have made first ... they might be the largest files in filedir.  Have to go into each courses and pretend to 'restore' a course to see those backup files .... delete all .mbz's ...  (or download them) then cancel the restore.  Videos and audios would be next guess as to what to go after that could be large.

Now the guess work (not very techie/scientific, but given the situation) ... when looking at a directory listing of the contents of moodledata/filedir ... figure out what is about half way down that listing ... let's say you determine is about @ the folder f2 (as per example of folders in a filedir above)

02  0f  1b  2b  41  50  6b  7e  8c  a1  b1  ca  da  f0  f6
0c  17  1d  2d  44  58  74  84  90  a3  b6  d1  e1  f2

Make a zip archive of those ... call it filedir1.zip.

Transfer that zip to SiteGround.  Unzip it into moodledata,   Remove the zip.

Go back to HostGator ... remove filedir1.zip to free up space.

Then go after all folders from where you stopped in the creation of the first zip, and create a filedir2.zip. Consisting of:

0d  18  1e  34  48  5f  75  85  92  ad  b7  d2  e2  f3  warning.txt
0e  19  1f  3a  4e  63  78  87  93  af  bc  d5  e5  f5

As per example again.

Same process transferring to SiteGround.

Make sure you check the file size of the zips **just after creation** and *before* transferring.

Those 2nd and maybe 3rd zips would be in the Megabyte range I would hope .... certainly NOT Kib!! ;)

You are close ... keep the focus on what needs to be done.

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Actually, I meant I’ll have to delete all the other website directories in cpanel...there’s really not that much in Moodle. Only images and a few PDFs. All videos are hosted on YouTube.


But I have maybe half a dozen or so other websites that I host all on the same space...and that’s whats taking up all that server space. Since all of those are safely moved to Siteground already, I can just delete those files to free up the space so I can make a full backup.


I had only been holding onto them to save work for myself and also just in case something went wrong in the move...but I’ll go through each one today and double check them then delete the old Host Gator files and hopefully that backup error message will go away.


Thanks, Ken! I really appreciate all the time you are taking to help me! We will get this figured out, eh? Like you said, almost there!

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Rereading your post, and I have some questions...you say:

make an archive of filedir directory contained in moodledata on HostGator (old site) so you can transfer that archive of filedir to new host.

From HostGator

https://support.hostgator.com/articles/how-to-generatedownload-a-full-backup


But that link seems to only have info about FULL website or home directory backups...nothing about just archiving one sub directory...


Also...when you say “archive”, what exactly do you mean?


When I backed up the Moodledata directory before, I went into cpanel and found it...then clicked compress and downloaded the compressed version of it via cpanel. And I do not recall any options there for format.

Then I uploaded on Siteground cpanel and extracted within cpanel.

So now I am wondering if that might be a problem, and there’s a better way...


I want to make sure today I do this right, so I think I need to know:

What you mean exactly when you say archive

And

How exactly do I ensure the directory is saved as binary, as you say. (Since I don’t recall ever seeing that option.)

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

I don't host with either ... and don't use cPanel.  Right now all am trying to do is help you find  docs for both systems.

'archive' is a zip or tar.gz ... a backup.

Ok, goofed on link for full site backups ... yes, you want to use cPanel to get a backup/archive/zip file of filedir.

I would assume cPanel, when creating a zip is using binary.

You have to download first.  So after you download,  xheck size ... surely it should not be KiB.

Use whatever you have on local machine to un-zip/un-tar.gz or whatever cPanel did for you to see if:

1) it does indeed unzip/un-tar, etc.

2) it contains that which you selected in the cPanel interface.

binary setting ...

Where that setting would make a difference to you is in uploading the zip or the files from an un-zip, to new hosting on SiteGround ... where they said don't use cPanel ... but FTP ... make sure FTP setting is binary.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

MYSTERY SOLVED, I think!!

Poking around.... I swear I thought that I had looked directly into the old config file...but it is looking like I did not... 

I was perplexed when I downloaded the filedir from the moodledata directory and this file is even SMALLER (8kb).... then noticed that there's a "filedir" directory one level up from the moodledata directory...

Compressed and downloaded that and it's 1.6GB....  So I'm starting to get an ah-ha moment.... I go look at the config file and here's what it says:

$CFG->dataroot  = '/home/tinamama/.cpanel/quickinstall/moodle-1422740527';

With all the back and forth that I've been doing...I'm guessing that I never thought to check the original config file or something....and just assumed that Quickinstall had put everything in moodledata as it should (this old Moodle install was installed using Quickinstall...the new was done manually)....  but anyway, it looks like this other filedir might be where my files are!

So this directory that contains the bigger filedir looks like it has extra stuff in it ... its kinda messy, and even includes a directory called public_html!  Not sure what the deal is there....I don't want to just copy everything and bring that mess to my new server....

So here's a screenshot of what's in there:



What would you suggest I copy from there? Just filedir? Or is there anything else there that I need to copy as well?


Unfrigginbelievable that after ALL that back and forth and working through things that it would be something so simple! And yet I DON'T CARE, so long as it gets FIXED!!!

And again... THANK YOU for working through this with me!! Your patience and kindness and perseverance really helped me! smile

 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Think you've found the issue.

In SiteGround, you are not using any script they offer to install your Moodle, right?   You are manually setting it up.  If that is correct, then the only archive/zip etc. you need is that 'mother load' filedir.

You've also, in advertently, provided a clue to those of us that don't use SoftAcumessup script to install Moodle ... at least on HostGator.  Would never be able to guess a hidden directory (.cpanel) inside another directory and yet another directory for the specific moodle - what a mess!

Just to be sure ... that 1.6Gig file you have and the screen shot shared ... was that from your local hard drive?

What's the size of just the filedir directory?

From what am able to gather, that filedir is the only thing you need to transfer to SiteGround.

Advise NOT to delete anything yet on HostGator until you have been successful in transferring what you need for Moodle to work.

'spirit of sharing', Ken




 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

Correct, did NOT use any script to install Moodle on Siteground. Did it manually.


The 1.6gig is the filedir DIRECTORY on my old host that I just discovered...and that and the screenshot is inside the directory called "moodle-1422740527" on Host Gator that Quickinstall created at:   
.cpanel/quickinstall

I've now compressed that newly discovered filedir and downloaded to my computer...and I just reset my nameservers to point back to Siteground so that I can FTP to my new server. I got into Filezilla and found out how to do a binary FTP transfer to Siteground and do that once the servers finish processing back.

I still have all my HomeschoolRealm files still on Host Gator...not doing anything to them until this is all DONE DONE DONE. I did delete all the other websites that I transferred....but those were all confirmed transferred and good to go. So the only thing I have left on Host Gator at this point is HomeschoolRealm.com and the Moodle install in it's subdirectory. (Finally got rid of that error message saying it couldn't do a site backup...but irrelevant now...)


Sooooo....if all goes well....in a couple hours once these nameservers finish getting reset back pointing to Siteground, I will get this filedir uploaded and hopefully all my files will be back!! WOOHOO!

Here's hoping nothing else goes wrong!!  This has taken enough of my time already!! I still have a complete revamp to do of this Moodle install before I can make it public again! But that's a whole 'nother ballgame for another day....and I already know how to do that! LOL!

So.many.lessons.learned from all this!!!

Thanks again! A thousand thank yous!

I'll let you know how it goes!! smile



 
Average of ratings: -
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

We wouldn't know what life was really like if everything worked the first time and with no muss/fuss.

So look at this as 'glass half full' ... and remember what you learned from 'glass half empty'!!! smile

I used to teach histories. smile

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

OHMYGOD!!! KEN!!!! IT WORKED!!!!

All my images are BACK, baby!!!

Now I can see how much work I have ahead of me to get this thing looking good....but I am UP for it!! It's OPERATIONAL again!!!

I'm SOOOOOO HAPPY!!!

THANK YOU THANK YOU THANK YOU!!!!

 
Average of ratings: Useful (1)
Picture of Ken Task
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Good!  Congrats!

To the moderators of this forum or whomever issues badges .... this user (Tina Smith) deserves a badge for something ... tenacity if nothing else ... got one of those Moodle Community Forums? smile

https://goo.gl/images/4ikMNs

'spirit of sharing', Ken


 
Average of ratings: -
Picture of Visvanath Ratnaweera
Re: Migrated to new host & now no images showing. Now they are showing.
Particularly helpful Moodlers
Let's create one. I propose "The Sunflower Mom Medal for resilience".

What about the 'spirit of sharing'? The Prof.? and the cat?
smile
 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 
Lol!  :)



On Sat, Jul 14, 2018 at 6:54 AM Visvanath Ratnaweera (via Moodle.org) <
 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 
Aww, thanks Ken! You were a big help! Giving me encouragement and info I

needed along the way to help dicypher things. I especially appreciate how

you didn’t talk down to me for the things I didn’t know. Thank you!



And not giving up on me! Thanks so much!



Thank you to everyone that contributed to helping me on this thread! I

really appreciate it!







On Fri, Jul 13, 2018 at 8:07 PM Ken Task (via Moodle.org) <
 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Tina, no need to reply to me if you wish, but all of this got me wondering about where you started and where you are right now.

1. What is your running version of Moodle?

2. Where is your Moodle hosted?  (e.g., Host Gator?)

3. What did you succeed doing?  (e.g., Upgraded? Changed domain name?  Got old copy running? Moved old Moodle to new server company? Got Host Gater to restore old Moodle? etc.)

4. What would you like to do next?

It is really great that you got to the point where you are up and running?  (I am still planning to make the migrate video.)

 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 
I don’t mind answering, Rick! :)



I’ll reply below...
 
Average of ratings: -
Picture of Tina Smith
Re: Migrated to new host & now no images showing
 

UGH! I replied in my email back, but apparently it stripped all my answers...ok, let's try this again....


1. What is your running version of Moodle?

The latest...3.5.1, I think?


2. Where is your Moodle hosted?  (e.g., Host Gator?)

The old (awful) host I moved away from was Host Gator. I am now with Siteground, and quite happy!


3. What did you succeed doing?  (e.g., Upgraded? Changed domain name?  Got old copy running? Moved old Moodle to new servercompany? Got Host Gater to restore old Moodle? etc.)

So, it actually ended up being very simple in the end...

I ended up just doing a fresh (manual) install on the new server (Siteground), and then deleted the entire new database it had populated in the install, and made a fresh one again...then imported my backup database. That got me all my content and users and format from the courses. But NOT my images. Still broken.

So then after much back and forth and round and round, we figured out this...

My old install was installed with Quickinstall installer. From what I can surmise, it appears it doesn't create a moodledata directory on install. All I can figure is that Moodle must automatically create that moodledata directory when it has stuff to put in it maybe? For whatever reason, the "filedir" directory with all my images wasn't saved IN the moodledata directory, but one level up.  So after we finally figured out that the "filedir" inside the moodledata was essentially empty, I noticed there was ANOTHER "filedir" in the level above it. Compressed and downloaded that and it was 1.6GB, SCORE!! Migrated that to my new server and VOILA! All images back in place!!

P.S. this is where Quickinstall put the moodledata directory: /home/tinamama/.cpanel/quickinstall/moodle-1422740527  So it took some digging just to find it even! And then to find out that it was essentially empty!  

So much around and around trying to figure all this out, but I did learn a LOT from all of this, so it was not time wasted! And I really appreciate everyone that contributed to helping me!


4. What would you like to do next?

Well now that it's all working properly, I have a lot of revamping to do, plus a ton of improvements. 

I let my Moodle install sit unused for far too long. I do innovative, interactive courses for fellow homeschool moms' children, and it had all been put on hold as I didn't have time for it recently. But now I'm fired up to get back to it. I currently sell a fun series of courses to go along with the Amazing Race, to learn about the countries the racers race through and after I get the whole of Moodle cleaned up and prettified (got my graphic artist daughter working on some new images for me!)...I'm going to start with completing my revamp of that series. I have an entire overhaul of that series I started after I figured out a better way to structure those classes that I never completed. So that's top of my list, after getting Moodle to look whiz bang.

But FIRST, I'm going to work today on getting fully GDPR compliant. I have some stuff to sort through for that. Making good progress. 

I also decided it was time to do some real step by step tutorials and started doing all the appropriate Moodle tutorials on Lynda.com, starting with the administrative one, which I finished over the weekend. It was a lot of stuff I already knew, but it did fill in a few gaps I had. And I'm moving on to the 3.5 tutorial next, which I think will be fun to learn all about features I am new to or not using to their fullest extent.

And I have a whole list of ideas for new courses...so there's a lot on the horizon for my "Noodle Homeschool" business! smile


It is really great that you got to the point where you are up and running?  (I am still planning to make the migrate video.)

Thanks! I'd love to see that video!
 
Average of ratings: -
Picture of Rick Jerz
Re: Migrated to new host & now no images showing
Particularly helpful Moodlers

Okay Tina, I feel good with where you are.

For Question #1. Go to Site Administration, Notifications.  Your Moodle version should look something like: Moodle 3.5+ (Build: 20180531). Post what you see.

For Question #2. Great!

For Question #3.  I was puzzled by the small size of your moodledata folder, which was in the KBs.  This meant to me that you had essentially nothing in your course.  There has to always be a moodledata folder, somewhere, unless you have a really odd install.  Look at your config.php file (in the moodle folder) and you will see where your moodledata folder is. Out of curiosity, where is your new moodledata folder?

For Question #4. I don't do GDPR (yet) so I can't help with that.  Yep, lots of great Moodle resources.  I have an old book titled "Moodle Security" which I found helpful.

Well, you succeeded with the migration!  Pretty soon, you will be able to make that video!

For what it is worth, here are the videos that I provide my students in order for them to learn my system.  Also, you might browse (you have probably done this many times) Site Admin, Server, Environment.  This too provides some good information about your server and your Moodle.



 
Average of ratings: -