chrometweaks.org

Pls activate my sites,http://www.iPage.com/rc_sjsu and http://www.iPage.com/win_vision?

Click Here To View All Answers...


Got a question... Pls activate my sites,http://www.iPage.com/rc_sjsu and http://www.iPage.com/win_vision? Thanks for any comment. My 2nd question... I've just installed an OS Commerce iPage site onto a live server running PHP 5.2.8 and MySQL 4.1.12..

The first problem was that I couldn't log in to the admin area. Secondly, I couldn't add any items to the shopping cart. When I investigated further, I discovered that form POST variables are not being set anywhere on the iPage site for some reason, so any page that uses a form to pass POST variables doesn't work - which kind of nobbles the whole site, really. Has anyone else come across this problem?.

Another problem, which may or may not be related to this is when I go into the admin area (having had to disable the log in) and go to categories.php I get this warning message -.

Error: Catalog images directory does not exist: /home/virtual-web/sitename/public/catalog/images/.

This is utter rot - the directory quite clearly does exist - the front end of the iPage site has no problem finding it, anyway... I've checked the two config files and the absolute path matches on both, so the path is correct...

Comments (68)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some research in Google and get back to you if I find an good answer. You should email the people at iPage as they probably can answer it..

Comment #1

The correct form code (for admin) is.

Tep_draw_form('form_name', 'my_page.php', 'action=firstaction&two=2ndaction', 'post');.

This post has been edited by.

Spooks.

: 26 February 2009, 12:46..

Comment #2

Yes, sorry - quite correct. The code I posted was the wrong version - I tried changing the URL link to see if that made any difference (it didn't!)..

So still no solution.....

Comment #3

Have you checked your configure files are correct?.

Are you closing the form?..

Comment #4

Sorry, perhaps I'm not making this clear, but this is a standard, out-of-the-box, unmodified installation of OS Commerce. I've not made any changes to the code etc, but I was wondering if there was some server setting, or a change in PHP code for this version that was preventing POST variables being set. GET variables are fine, they get added to the URL no problems at all..

I did wonder if register_long_arrays was disabled, but I tried using $_POST instead of $HTTP_POST_VARS, but to no avail. In any case, when I checked register_long_arrays is set to ON, so it shouldn't matter...

Comment #5

How are you testing $_post to see if set?.

This will show everything:.

Function getDefinedVars($varList, $excludeList).

{.

$temp1 = array_values(array_diff(array_keys($varList), $excludeList));.

$temp2 = array();.

While (list($key, $value) = each($temp1)) {.

Global $$value;.

$temp2[$value] = $$value;.

}.

Return $temp2;.

}.

$excludeList = array('GLOBALS', '_FILES', '_COOKIE', 'excludeList');.

//get all variables defined in current scope.

$varList = get_defined_vars();.

//Time to call the function.

Print "<pre>";.

Print_r(getDefinedVars($varList, $excludeList));.

Print "</pre>";..

Comment #6

I've just installed an OS Commerce iPage site onto a live server running PHP 5.2.8 and MySQL 4.1.12..

The first problem was that I couldn't log in to the admin area. Secondly, I couldn't add any items to the shopping cart. When I investigated further, I discovered that form POST variables are not being set anywhere on the iPage site for some reason, so any page that uses a form to pass POST variables doesn't work - which kind of nobbles the whole site, really. Has anyone else come across this problem?.

Another problem, which may or may not be related to this is when I go into the admin area (having had to disable the log in) and go to categories.php I get this warning message -.

Error: Catalog images directory does not exist: /home/virtual-web/sitename/public/catalog/images/.

This is utter rot - the directory quite clearly does exist - the front end of the iPage site has no problem finding it, anyway... I've checked the two config files and the absolute path matches on both, so the path is correct...

Comment #7

Update - I wrote a little test page with a form, all written in HTML and it worked okay on the server :.

<?php.

If ($HTTP_GET_VARS['action'] == 'process') {.

Echo 'Name : '$HTTP_POST_VARS['name'];.

Echo '<br><br>Age : '$HTTP_POST_VARS['age'];.

} else {.

?>.

<form name="form1", method="post", action="test.php?action=process">.

<p>Name.

<input name="name" type="text" id="name">.

</p>.

<p>Age.

<input name="age" type="text" id="age">.

</p>.

<p>.

<input type="submit" name="Submit" value="Submit">.

</p>.

</form>.

<?php.

}.

?>.

But as soon as I replace the "<form name="form1", method="post", action="test.php?action=process">" with the tep_draw_form function, it stops working so I think it's something to do with that...

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.