Re: [campsite-support] Preview Problem
  • what platform are you using? linux? which one? windows? any other else?


    On Jan 7, 2008 5:04 PM, wrote:
    > Author: analog
    > Link: http://code.campware.org/phorum/read.php?8,6061,6061#msg-6061
    > --------------------------------------------------------------------------------
    >
    > Hi,
    >
    > I've created a publication without any problem and then I created an issue without any problems.
    >
    > When I try to "preview" the issue, I get a message of "/en/issue..." doesn't exist on the server. Looking in the apache logs it looks like its looking for a static file on the file system for that virtual host.
    >
    > Any idea on the problem here? I can't even figure out where to start!!! Its getting all the way through preview.php and creating the frameset page and the URL is correct, its the publication domain "ex {domain}/en/2008_01_08?LoginUserId=1&LoginUserKey={key}&AdminAccess=all&preview=on"
    >
    > So what is wrong? Why isn't the issue loading? What could I be missing?
    >
    > TIA!!
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • 9 Comments sorted by
  • Sorry - I'm running under Debian Linux using Apache 2 with php 5 and mysql 5.

    Thanks!!
  • Hi,

    Is there any chance you can even remotely point me in a direction to look at? Without knowing the code, I don't even now where to begin.

    If we look at the index of the instance/virtual host that was created there are URL's like

    href="/en/2008_01_08/News/143/"


    "What" is supposed to parse that if its not a real location on the file system and there is no script name in the URL - I thought at first index.php did it, but I don't see how or why Apache should consider that anything but a local path.

    TIA!!
    -Chris
  • hi, do you have any templates for the publication, issue?
    btw, what version of campsite did you install? sorry if you already
    provided this info.



    On Jan 8, 2008 5:27 PM, wrote:
    > Author: analog
    > Link: http://code.campware.org/phorum/read.php?8,6063,6076#msg-6076
    > --------------------------------------------------------------------------------
    >
    > Hi,
    >
    > Is there any chance you can even remotely point me in a direction to look at? Without knowing the code, I don't even now where to begin.
    >
    > If we look at the index of the instance/virtual host that was created there are URL's like
    >
    > href="/en/2008_01_08/News/143/"
    >
    >
    > "What" is supposed to parse that if its not a real location on the file system and there is no script name in the URL - I thought at first index.php did it, but I don't see how or why Apache should consider that anything but a local path.
    >
    > TIA!!
    > -Chris
    >
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • Hi Holman,

    I'm using the default sample templates with v3 beta2 (on debian with apache2 and mysql 5).

    I've already tried killing the DB and redoing the install and templates again and nothing.

    Just to see what would happen, I put in a mod_rewrite rule to make any requests to "/en/xxxx" be redirect to "/index.php?en/xxx" and that didn't really work.

    I got further then this when I tried beta 1 (we could create, view and preview issues we created). Does anything ring a bell that might have changed between beta 1 and beta 2?

    Thanks!!
  • hi,

    it did not change in that regard. although we modified URI classes
    which are in charge of parse urls.
    what happens when you try to look at the frontend instead of previewing?

    best,



    On Jan 8, 2008 10:37 PM, wrote:
    > Author: analog
    > Link: http://code.campware.org/phorum/read.php?8,6063,6078#msg-6078
    > --------------------------------------------------------------------------------
    >
    > Hi Holman,
    >
    > I'm using the default sample templates with v3 beta2 (on debian with apache2 and mysql 5).
    >
    > I've already tried killing the DB and redoing the install and templates again and nothing.
    >
    > Just to see what would happen, I put in a mod_rewrite rule to make any requests to "/en/xxxx" be redirect to "/index.php?en/xxx" and that didn't really work.
    >
    > I got further then this when I tried beta 1 (we could create, view and preview issues we created). Does anything ring a bell that might have changed between beta 1 and beta 2?
    >
    > Thanks!!
    >
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • Hi Holman,

    We can get to the index page via the frontend - but clicking any link we created on it just results in apache giving a 404 error.

    -Chris

  • hi Chris,

    take a look at your campsite document root, were the language symbolic
    links created at installation time?
    symlink should look like this:
    de.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php
    en.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php
    ...
    and so for every language supported.



    On Jan 8, 2008 11:16 PM, wrote:
    > Author: analog
    > Link: http://code.campware.org/phorum/read.php?8,6063,6080#msg-6080
    > --------------------------------------------------------------------------------
    >
    > Hi Holman,
    >
    > We can get to the index page via the frontend - but clicking any link we created on it just results in apache giving a 404 error.
    >
    > -Chris
    >
    >
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • Woot!! That was the problem Holman - those symlinks were not created during install.

    I noticed that they were there in the beta 1 and not the beta 2 but I thought that was just a change between the versions.

    I also noticed in beta 1 there was a symlink for tpl.php -> index.php. I assume I need that as well? (I created it anyway to be safe).

    Thanks for helping out!!
  • glad to know it finally works.
    i will check if it is a bug and fix for the next release, thanks.


    On Jan 9, 2008 7:14 AM, wrote:
    > Author: analog
    > Link: http://code.campware.org/phorum/read.php?8,6063,6082#msg-6082
    > --------------------------------------------------------------------------------
    >
    > Woot!! That was the problem Holman - those symlinks were not created during install.
    >
    > I noticed that they were there in the beta 1 and not the beta 2 but I thought that was just a change between the versions.
    >
    > I also noticed in beta 1 there was a symlink for tpl.php -> index.php. I assume I need that as well? (I created it anyway to be safe).
    >
    > Thanks for helping out!!
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman