500 server error instead of web page...

User 430140 Photo


Registered User
43 posts

I got my new form to work perfectly in test. However, the client does not want the form page to be in the root folder. He wants it is a folder called "register". I moved all files to the register file and get a 500 error.

I changed the paths on their form page and the form HTML page to "register/formNameFolder/formName.php" but I still get the 500 error.

They need the form page (their page with the form embedded) in the 'register' folder as it has many website links associated with it. I don't have access to these files, otherwise I would just pull them up in DreamWeaver, move their php page out of their 'register' folder and all the links would change and point correctly.

Any suggestions? Is there somewhere else I need to change the path?
Code for HTML page from form builder:

<script type="text/javascript" src="register/PSFocusForm/common/js/form_init.js" data-name=""
id="form_init_script">
</script>
<link rel="stylesheet" type="text/css" href="register/PSFocusForm/theme/default/css/default.css"
id="theme" />


Code for PHP page where form is embedded:

<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"register/PSFocusForm.php" + window.location.search + "\" width=\"100%\" height=\"4292\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"register/PSFocusForm.php\" title=\"PSFocusForm\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe height="4292" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="register/PSFocusForm/PSFocusForm.html">
<a href="register/PSFocusForm.php" title="PSFocusForm"></a>
</iframe>
</noscript>


Test page: http://www.ourrefugeandstrength.us/focus.php

thanks,

Helen
User 187934 Photo


Senior Advisor
20,271 posts

Here's what you do.
Export the form files.
You'll get a folder named PSFocusForm_exported.
Remove the _exported part of the folder name and change the PSFocusForm to register
Now adjust your form script to account for this.
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"register/PSFocusForm.php" + window.location.search + "\" width=\"100%\" height=\"4292\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\" register/PSFocusForm.php\" title=\"PSFocusForm\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe height="4292" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="register/PSFocusForm/PSFocusForm.html">
<a href="register/PSFocusForm.php" title="PSFocusForm">Check out my CoffeeCup Form</a>
</iframe>
</noscript>


Your form is here.
http://www.ourrefugeandstrength.us/PSFo … sForm.html
It looks like the PSFocusForm.php isn't in the correct location.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 430140 Photo


Registered User
43 posts

I have moved them everywhere, but probably did not pick up the correct code paths. I will try this. Thank you so much.

H
User 430140 Photo


Registered User
43 posts

I actually had this in one of my test scenarios. I deleted everything, replaced your code for original script and uploaded the PSFocusForm folder into 'register'.
I uploaded focus.php into the 'register' folder as well.

It still is throwing the 500 error. I will wait an hour in case server has not caught up. I deleted cash but found that at times it just takes time for everything to catch up. I will try back in an hour.

thanks I will keep you posted.
User 430140 Photo


Registered User
43 posts

Exported again from scratch, updated focus.php and script file to add register/ in URL paths (just as you have in your script above). Still getting a 500 error.

Also put all folders in Dreamweaver and moved them within Dreamweaver. When asked to update links I said yes. Still did not work. \

Started from scratch again and only changed the focus.php script to include the register/ URL path (just as you have in your script above). Moved the PSFocusForm folder into the 'register' folder and did NOT allow Dreamweaver to update links. Still does not work.

I can't figure out why this wont work if the URL's are pointing to the correct files.

Thanks for looking at this again.

H
User 430140 Photo


Registered User
43 posts

I don't get the 500 error now. the page appears but not the form
User 430140 Photo


Registered User
43 posts

What about the PSFocusForm.php? It has a script path of:

require $scriptpath . '/fbapp/php/config.inc.php';


Does this need to also be updated to include register? It is already in the 'register' folder, but . . . .

Not sure if this needs anything added to the path.

H
User 103173 Photo


VP of Software Development
0 posts

The problem is with the path. Your markup has it pointing to http://www.ourrefugeandstrength.us/regi … sForm.html

but the form is actually here at http://www.ourrefugeandstrength.us/regi … sForm.html
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 430140 Photo


Registered User
43 posts

On which page/file is this doing this? I see where you show it is register/register in your note, but on my focus.php it is just showing one 'register'/

It is the same with the PSFocusForm.php. Can you tell me where this double register/register is found?

thanks

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.