Instalation

Post Reply
zkhuber
Jr. Bludit
Posts: 5
Joined: Fri Oct 02, 2020 5:29 pm

Hi! I have a installation problem. First I would like to show our site structure.
In our site = site.org we have some entities (entity01, entity02...) for which I would like to put blog page. I try to install "Bludit" but I have problem.
Blog system is installed to the "entity site" e.g. http://site.org/entity/blog/
Looks like process is going on I get language to choose, page to put password and here ... starts problems. By hitting Next I'm redirected to http://site.org/ not to blog on http://site.org/entity/blog/
After I tried change .htaccess file

# Base directory
RewriteBase /entity/blog/

browser show me "error, to many redirections..."
.htaccess is changing in install process to "RewriteBase /". I tried change make changes to install.php without result.

// Base URL
// Change the base URL or leave it empty if you want to Bludit try to detect the base URL.
$base = 'http://site.org/entity/blog/';

// File site.php

// If Bludit is not installed inside a folder, the URL doesn't need finish with /
// Example (root): https://domain.com
// Example (inside a folder): https://domain.com/folder/
if (HTML_PATH_ROOT=='http://site.org/entity/blog/') {
$siteUrl = PROTOCOL.DOMAIN;
} else {
$siteUrl = PROTOCOL.DOMAIN.HTML_PATH_ROOT;
}

How I can install this blog to the folder/direction http://site.org/entity/blog/ .
Thanks for any help :D .
Huber
lightmat
Sr. Bludit
Posts: 46
Joined: Fri Feb 21, 2020 10:53 pm

I believe you are looking for this fix
viewtopic.php?p=8106#p8106
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Do you have problems with the installation of Bludit or with using the page "Blog" for posts?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
zkhuber
Jr. Bludit
Posts: 5
Joined: Fri Oct 02, 2020 5:29 pm

Probably problem is with installation. I didn't pass to see blog page.

>lightmat I think that functions.php just have these corrections. What I tried to do was change line 601 to point to directory where is installed blog:

if (!empty($args['uriBlog'])) {
$args['uriBlog'] = Text::addSlashes($args['uriBlog']);
} else {
if (!empty($args['homepage']) && empty($args['uriBlog'])) {
$args['uriBlog'] = '/blog/'; ------->maybe change to /entity/blog/ but not working
} else {
$args['uriBlog'] = '';

>Edi I think is installation. I try install blog to some entity site. So it will be like http://my.site.org/entity/blog/ and I start installation from this direction.
I pass by language installation and password installation. After this I was redirected to my main page (my.site.org) when I try to get to the http://my.site.org/entity/blog/ I get error message and I can't see any thing more.
Image I don't know if it pass.
Anyway in tekst "The page isn’t redirecting properly. An error occurred during a connection to my.site.org. This problem can sometimes be caused by disabling or refusing to accept cookies. Try again".
How I said I try change .htaccess to # Base directory RewriteBase /entity/blog/ but this is not working.
Any ideas. Thanks.
Huber
Attachments
problem-redirections-01.jpg
problem-redirections-01.jpg (57.48 KiB) Viewed 3083 times
zkhuber
Jr. Bludit
Posts: 5
Joined: Fri Oct 02, 2020 5:29 pm

I forgot one thing. When I try install with PHP 7.4 installation give my an error. I don't remember what it was. But in this moment maybe I can repeat it if you want. So I change on server to PHP 5.6 like was suggestion.
Huber
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Bludit detects normally the subdirectories and modifies the file .htaccess. Otherwise you can set it manually, as you have done. In your case it is

Code: Select all

# Base directory
RewriteBase /entity/blog/
Is there another file .htaccess in the root directory or the directory /entity?

What means my.site.org? Is this another subdirectory (my)?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

zkhuber wrote: Sat Oct 03, 2020 3:24 pm When I try install with PHP 7.4 installation give my an error. I don't remember what it was. But in this moment maybe I can repeat it if you want.
Yes, please inform me about the error.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
zkhuber
Jr. Bludit
Posts: 5
Joined: Fri Oct 02, 2020 5:29 pm

This error I get with PHP 7.4
Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /includes/framework.php:21 Stack trace: #0 /index.php(22): require_once() #1 {main} thrown in /includes/framework.php on line 21

Anyway the first problem with installation now I think is not installation but server which write .htaccess in wrong or read it wrong. So must be how write syntax in htaccess.
Maybe all this errors are because of server.
I tried install this blog on another two servers and was no problem. htaccess was write correctly. Also after I moved manually installed folder with blog and manually changed htaccess everything was working OK.
So I think that I must ask server provider about htaccess redirections.

I will have another question about integration of Bludit blog system with another platform but maybe this will be for another topic.
zkhuber
Jr. Bludit
Posts: 5
Joined: Fri Oct 02, 2020 5:29 pm

Is there another file .htaccess in the root directory or the directory /entity?

What means my.site.org? Is this another subdirectory (my)?
No another .htaccess

my.site.org = main page like "https://www.google.com/" :D

So I installed on this "bad" server on directory (yes it's not real site) http://my.site.org/entity/blog

But this "bad" server is writing .htaccess to this
# Base directory
RewriteBase /
And if I change it manually it do not accept changes. Or another way, it write changes but but give error. I think that is creating a loop. I tried change a syntax but I didn't find good solution.
Huber
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

zkhuber wrote: Sat Oct 03, 2020 7:36 pm So I think that I must ask server provider about htaccess redirections.
Yes, I think so, and also how the subdirectories and PHP 7.4 are installed.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply