storytlr icon indicating copy to clipboard operation
storytlr copied to clipboard

Widget links don't work when storytlr deployed in sub-folder

Open lisvane opened this issue 10 years ago • 8 comments

Clicking on the storyteller icon in the lifestream gives a not found 404 error. The /entry folder has not been created on the host. Do I need to point something elsewhere as all the posts in the lifestream are listed correctly.

lisvane avatar May 22 '14 17:05 lisvane

Storytlr uses Apache URL rewriting to map URL back to index.php. This is done with the .htaccess file in the project root. But for this file to be taken into account, you must set 'AllowOverride All' in your virtual host. Have you done this?

eschnou avatar May 22 '14 18:05 eschnou

When I do this storytlr does not load on the page that it is embedded on using the widget.js

lisvane avatar May 22 '14 18:05 lisvane

I have confirmed with the host provider that allowOverride All is set. Do I need to redirect StoryTlr somewhere? It is in public_html/story

lisvane avatar May 23 '14 14:05 lisvane

So, when you access 'http://yourdomain/story', it works, but as soon as you click on a link you get a 404 ? Can you double check that the file .htaccess is present in your root folder?

eschnou avatar May 23 '14 19:05 eschnou

Hi Laurent

Yes .htaccess is present.

The problem only exists from the lifestream links. If I use story then the links are fine. If I embed the story page as an object there is no issue. The problem only seems to be present using the widget.js link.
The link address from the icon is of the form..../entry/1/5 rather than..../entry/text_from_comment

I installed Storytlr on the host using scriptaculous. Everything is hosted locally. Do I need to define my domain in the advanced settings of the configuration and define a CNAME?

/Thanks/

//

On 23/05/2014 20:06, Laurent Eschenauer wrote:

So, when you access 'http://yourdomain/story', it works, but as soon as you click on a link you get a 404 ? Can you double check that the file .htaccess is present in your root folder?

— Reply to this email directly or view it on GitHub https://github.com/storytlr/storytlr/issues/87#issuecomment-44048955.

lisvane avatar May 23 '14 20:05 lisvane

Ha! The problem only occurs with the widget? This may well be a bug then. Can you share with me the url to your site/widget (you can do it in bu email: [email protected]) so I can have a look? Thanks!

eschnou avatar May 24 '14 19:05 eschnou

I am also unable to upload pictures!

lisvane avatar May 26 '14 14:05 lisvane

Ok, I have confirmed this is a bug. In the widget, the links point to the top root and don't take into account the sub-folder. Thanks for reporting this.

eschnou avatar May 27 '14 18:05 eschnou