HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Localhost works fine; domain instead... no go.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#29688 (In Topic #6819)
Avatar

Well-settled

I installed the portal last night and started configuring it locally. Once I get to the outside, I try to hit the page and get broken images and nonfuctionallity all over the place. I figure it is something in the config so I fire up config_editor.php and change my base_url to http://www.mysite.com/portal.  Now I get some of the pictures, but when i try to log on it tells me that the URL must have been copied and pasted and that it can't log me in.  I ran the permissions batch file to set all the permissions on the folders.  And, like I said, it works fine locally, but not remotely. 

Has anyone experienced this, and/or know a fix?

Thanks.



ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29690
Avatar

Please try configuring the base URL to the equivalent of http://mysite.com/portal. Some servers do hidden redirections between one or the other, and destroy form data (such as login-form data) in the process.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29696

Non-joined user

can this be done by editing the info.php?
Back to the top
 
Posted
Rating:
#29698
Avatar

yes


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29699
Avatar

Well-settled

Thanks for the quick reply.  I tried that out and still have the same issue.  Broken images on the front page and an incomplete log in process.  Here is the exact text after I try to log in.

You have gone to an URL which requires 'posted' data to be sent, as well as the information in the URL itself. This is most likely because you have copied and pasted a link to a new browser window, but the page the link was for was a results page for an action. (login_username)

I was getting this last night on the machine the portal is installed on, and once I changed the base URL over to localhost/portal it worked fine.  This morning I try to sign on from outside and get even more broken links and pictures than what I am getting now.





ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29715
Avatar

Well-settled

I found another odd thing.  Some, but not all, of the links are referencing localhost even after I make the change in info.php.  Is there some other location where these links could be getting the localhost domain?

Some examples of where I am seeing localhost instead of the public domain on the front page is the logo link at the top left of the page and the link to add a new download of the week.  Maybe someone out there knows where this localhost reference may be coming from.

Thanks so much for your help.

UPDATE: 3/9 @ 1:19 CST:  I did a text search on the files that fall under my portal directory and found a number of the referencing localhost.  After changing these to my public domain, it fixed all my pictures, but login is still broken and the links are still referencing localhost.



Last edit: by blodlizrd


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29728
Avatar

Please run the force_upgrade.php script, log into that, and empty the caches. I believe that will fix your problem :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29744
Avatar

Well-settled

Unfortunately, that didn't fix the issue, but thanks for the effort.  I don't understand why it thinks that I copy and pasted the URL.  Why does it even do this check?  


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29745
Avatar

It's not that it's doing a check, it's that it's trying to give a meaningful error message. The posted form data is somehow not reaching ocPortal.

If you:

1)
make a simple file, test.php:

Code

<?php

print_r($_POST);

?>

<form action="test.php" method="post">
   <input type="text" name="the_value" value="text" />
   <input type="submit" value="Test it" />
</form>

2) Upload it

3) Run it

4) Click the button

Do you see your chosen text appearing at the top? If you do, try changing action="test.php" to a full URL, and see if that causes the text to disappear.

Fundamentally, the text should always appear on this test script, but if some kind of redirect is happening, then it should demonstrate how form data is being lost.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29748
Avatar

Well-settled

 O_o  Ah ha. I guess I have some sort of redirect happening.  I wonder why my other pages that require data to be posted are still working.  Weird.  

So does that mean that my current web hosting solution will not allow me to use this?  I host my site from my house and have a registered domain name that points to my IP.  


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29749
Avatar

Am I right in assuming the test did show a problem then?

It's quite hard for me to speculate what kind of configuration would cause this as it's never happened to me on a site I've worked on directly. What web server do you use? Possibly check the configuration to see if anything might be forcing redirects. Hows your DNS setup done?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29751
Avatar

Well-settled

Correct, the test.php did not work once I included the full URL.  I am using IIS as my webserver.  Currently the DNS is being handled by the place where I registered the domain, but given the problems I'm having, I think I am going to have to host DNS myself.   :(  Do you know of any inexpensive or free DNS servers that are reliable?  I am running Windows XP so there is no built in DNS server; MS kept that little jewel for their server line. What a headache.  I wish whatever it is that my domain name folks are doing would just stop doing it.   :P


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
Posted
Rating:
#29753
Avatar

Well-settled

 :o  :o  :o

Well, I figured out what was wrong.  My dang domain host was pointing to another IP and then doing a redirect from there to my IP.  I changed their first jump to go directly to my IP and shapow! login works like a champ.

Chris… if you hadn't pointed me in the right direction with that test.php script I'd still be pulling out my hair.  You rock, my friend.  :thumbs:  
  
A note to anyone else having this problem, if you are using DomainDirect as your domain host and doing a redirect to your IP, you will have the issue I described here.  I had to go into the advanced settings on their site, then to Edit Zone File, and then change the A Records to point to my IP.

Weew.  That was fun.  Thanks again for your help, Chris.  I'm off to get my site up and running.  ;)


ModelerX.com - Post your models in the gallery and chat about 'em in the forums.  Building the largest online community of modelers with your help.

Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: