SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

images upload to live site instead of test site

5 years 9 months ago #121603 by fancynotion
I have three hobby websites that I "run." Two are very small and one is what I consider large, having hundreds of articles.

I am in the process of transitioning them to become responsive sites. They all started as 1.5 Joomla sites and over the years are now at 3.4.8, however, not responsive. (They were using old templates and just "good enough.")

I am doing the transition of these live sites in a test folder on the same server as the live sites. Each of the 3 websites is hosted by a different hosting company, by the way.

I've taken the easiest one and through trial and error, I believe it is now responsive, (Protostar) at least according to Google's test for mobile friendly websites. I see it displaying on a cell phone and tablet and it appears to be responsive to me and "stacked" so easily can be read on a cell phone, for example.

I am now transitioning the second small website. While small ...meaning not that many pages...it does have a lot of images because it is an artist's website.

All seems to be going well with that site except for one thing so far. When I try to upload a new image via the media manager, the image doesn't upload to the test site. It loads into the "live" website media manager.

So I figure that there must be a path or toggle or whatever somewhere that I need to fix. I've looked everywhere I can think of but I can't seem to figure this one out. I am thinking this is a simple thing to fix, but because I am not a developer, I am unable to resolve it. (Trust me, I am in WAY over my head.)

Any pointers on what to look for?

Thanks
Linda

Please Log in to join the conversation.

5 years 8 months ago #121626 by Valentin
Hi and welcome to OSTraining Linda,

All seems to be going well with that site except for one thing so far. When I try to upload a new image via the media manager, the image doesn't upload to the test site. It loads into the "live" website media manager.

If this site is hosted in a separate server than your live site, that shouldn't be possible unless I'm missing something. Please clarify

If you go to Content > Media > Options
What's the value for "Path to Images Folder"?

Looking forward to help you

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121665 by fancynotion
Replied by fancynotion on topic images upload to live site instead of test site
Hello Valentin:
Sorry to confuse you about the different web hosting accounts. I only wanted to be clear that my 3 websites are all hosted by different companies.

In the website I am discussing, the live site and the test site are at the same web host server. The test site is in the pubic_html folder. The live site is in the public_html folder.

In the test site, when I checked the content/media manager/options for the path to images, the word is images.

I also checked the live site and the path to images is also images. (so is the path to files folder in both live and test sites)

Thanks
Linda

Please Log in to join the conversation.

5 years 8 months ago - 5 years 8 months ago #121681 by Nick
Hi Linda,

That's strange indeed. Would you send us some login credentials to support@ostraining.com so we can take a quick look for you? Also, please do two things for us:
1) In the email, include a link to this forum post
and
2) After sending the email, reply to this forum post letting us know you sent the email so that we can check it.

Looking forward to helping.

By the way, even though you're not a developer, you're going great! Keep it up.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121704 by fancynotion
Replied by fancynotion on topic images upload to live site instead of test site
Nick:
I have sent an email to support@OSTraining about the login information.

Thank you
Linda

Please Log in to join the conversation.

5 years 8 months ago #121762 by Nick
Thanks Linda! Looks like you changed the path and included the subfolder. Also, looks like the images in media manager are correctly referenced to your test site's images folder. So the issue appears to be resolved.

If the issue isn't completely resolved yet, could you provide exact steps to replicate it?

Looking forward to helping.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121765 by fancynotion
Replied by fancynotion on topic images upload to live site instead of test site
Hi Nick:
No, I never did "change" anything. The path was already set as images, in answer to Valentin's question, on both the test site and the live site. I didn't go there and change anything.

So no, the issue has not been resolved yet. I just tried again. In media manager, I tried to upload an image to the root images folder and I see a response saying that my image has been uploaded. However, it has not been uploaded to the test site. I close the test site and log into the live site and I can see that the image has been uploaded to the root of the live site in media manager. In this case the name of the image was scancowgirl0001.

Could this be caused by something strange when I created the new database for the test site? Maybe I am not linked to it correctly. Really, I totally don't know.

Linda

Please Log in to join the conversation.

5 years 8 months ago #121766 by Nick
Thanks for the info, Linda! I was able to replicate the issue and am looking for a fix. I'll post here once I have an update.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121767 by fancynotion
Replied by fancynotion on topic images upload to live site instead of test site
Thanks. I've been looking again myself.

I just noticed that even though I have a new database for the test site, the database tables prefix is the same one as the live site. Could this be the problem? (Seriously, you are dealing with a newbie here...)

Thanks
Linda

Please Log in to join the conversation.

5 years 8 months ago #121768 by Nick
That's for sure not the problem, but it is indeed a strange issue. It's the first time I've seen it, but I think I'm close to resolving it.

You're doing a great job by the way!

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121769 by Nick
It's fixed :)

You had FTP enabled in your global configuration and it was set to use the public_html folder as the root. So all your upload settings were relative to the public_html folder. Turning off FTP fixes this (you shouldn't need it on anyway). Alternatively, you can specific your test site's folder in the FTP settings.

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 8 months ago #121771 by fancynotion
Replied by fancynotion on topic images upload to live site instead of test site
Thank you! I would never have found this.

I will take a look in a bit and let you know if I still have a question about this.

Snow is occupying most of our time right now....

Thanks again!
Linda

Please Log in to join the conversation.

5 years 8 months ago #121774 by Nick
You're very welcome, Linda!

It sounds like you're on the East Coast. Wishing you a safe and warm weekend!

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!