pasamio / jwcp

Automatically exported from code.google.com/p/jwcp
0 stars 0 forks source link

incomplete configuration.php leading to 404 errors and bad redirection of child to master site #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a new child
2.navigate to the new child frontend
3.navigate to the new child backend

What is the expected output? What do you see instead?
*when navigating to the front end, expected to see the child site, but 
instead, a 404 error was encountered.
*navigating to the backend shows the child site, but all links heads back 
to the master site.

What version of the product are you using? On what operating system?
1.0.1

Please provide any additional information below.
configuration.php file seems not to be updated apart from the database 
table prefix

Original issue reported on code.google.com by bol...@gmail.com on 4 Jan 2010 at 3:22

GoogleCodeExporter commented 9 years ago
Is your master configuration.php file differs from child config file?

Original comment by edo...@gmail.com on 5 Feb 2010 at 4:46

GoogleCodeExporter commented 9 years ago
There must certainly be a few difference btw both of them, eg database 
prefixes...

The issue apparently is that the variable:- "var $live_site = '';" if set, is 
not
updated in the child's configuration.php while creating the child site, hence 
any
link on the child site will lead back to the set value of "live_site" viz: the 
master
site.

I have noticed that some configuration.php files have the variable:- " var 
$live_site
= ''; " left empty, in this case, the site will work properly. since there is 
no hard
coded link to be used.

work around:
set :- "var $live_site = '';" empty (if it doesnt break anything in the site)
or
manualy imput the correct value after creating the child site.

{unless this of course is an "undocumented feature" ;-)}

see this post:
http://code.google.com/p/jwcp/issues/detail?id=13#c2

Original comment by bol...@gmail.com on 5 Feb 2010 at 9:58

GoogleCodeExporter commented 9 years ago
@edo888
thanks for great work on the component,its something i've been looking for for 
a long
time.
My suggestions is that you could allow more of the variables (log_path, 
tmp_path,
live_site, etc) in the configuration.php file to be filled/changed during the 
child
creation process, similar to the database settings already implemented....

Original comment by bol...@gmail.com on 5 Feb 2010 at 10:05