Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
403 Access Forbidden by CSRFProtector! again
#1
Hi!

I am sorry, but the other thread is closed. I am getting the same message when I am logging in from a workstation different from /localhost. When logged on /localhost, everything is working fine. There are some warnings and notices in the error.log file, but nothing from CSRFProtector.php.

Also during the installation there where some problems, but I've solved them. I have not checked are they discussed, so excuse me if I am duplicating:

/install/setup-config.php, line 133
$pieces = split('/',$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']));

split() function deprecated, changed to

$pieces = explode('/',$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']));

/install/odm.php, line 310

$query = "CREATE TABLE IF NOT EXISTS `{$dbprefix}settings` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`name` VARCHAR( 255 ) NOT NULL ,
`value` VARCHAR( 255 ) NOT NULL ,
`description` VARCHAR( 255 ) NOT NULL ,
`validation` VARCHAR( 255 ) NOT NULL ,
PRIMARY KEY ( `id` ) ,
UNIQUE ( `name` )
) ENGINE = MYISAM";

changed to

$query = "CREATE TABLE IF NOT EXISTS `opendocman`.`{$dbprefix}settings` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`name` VARCHAR(255) NOT NULL ,
`value` VARCHAR(255) NOT NULL ,
`description` VARCHAR(255) NOT NULL ,
`validation` VARCHAR(255) NOT NULL ,
PRIMARY KEY (`id`),
UNIQUE (`name`)
) ENGINE = MyISAM CHARSET=utf8 COLLATE utf8_bin";

and installation finished successfully.

I have installed the system on two test servers, running Ubuntu 16.04 (64-bit), and I am getting the same error on both. Can you help?

Thank you for the efforts.
#2
You have done me a great service Nasko. I have been setting up the config file by editing the config-sample.php and importing the database.sql file in my attempts to set this up on Ubuntu 16.04. Unfortunately I'm also having the 403 Access Forbidden by CSRFProtector! when trying to log in. I'm hoping we get to the bottom of this. When I look in the /var/log/apache2/access.log I see this entry when I try to log in :"POST /odm/index.php HTTP/1.1" 403 331 "http://10.10.10.20/odm/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36" but I see nothing in the error.log.
#3
Hi,

I just installed OpenDocMan in my local network and had the same problem.

The problem got solved by changing a value in the OPenDocMan MySQL-Database.
Table: 'opm_settings'
Field Name: 'base_url'

The value should be the actual address which you use to access OpenDocMan from another machine:

e.g. 'http://testnetwork.net/opendocman/

I used 'PHPMyAdmin' to manipulate the data in the database.

I hope it solves your problem.


Forum Jump:


Users browsing this thread: 1 Guest(s)