Welcome Guest, Not a member yet? Register   Sign In
error while running install.sql in community auth
#11

(This post was last modified: 06-04-2018, 09:31 AM by richb201.)

I installed Comauth in it's own directory and it seems to be coming up although I am getting a bunch of warnings when I run Create_user(), A bunch of them deal with SSL which I don't have installed on my localhost, but is installed on the public server. Any recommendations? I am running out of horsepower.

A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant USE_SSL - assumed 'USE_SSL'

Filename: examples/page_header.php

Line Number: 35

Backtrace:

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\views\examples\page_header.php
Line: 35
Function: _error_handler

File: C:\xampp\htdocs\comAuth\application\controllers\Examples.php
Line: 203
Function: view

File: C:\xampp\htdocs\comAuth\index.php
Line: 315
Function: require_once

A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant USE_SSL - assumed 'USE_SSL'

Filename: helpers/MY_url_helper.php

Line Number: 29

Backtrace:

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\helpers\MY_url_helper.php
Line: 29
Function: _error_handler

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\views\examples\page_header.php
Line: 43
Function: login_anchor

File: C:\xampp\htdocs\comAuth\application\controllers\Examples.php
Line: 203
Function: view

File: C:\xampp\htdocs\comAuth\index.php
Line: 315
Function: require_once

A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant AUTH_REDIRECT_PARAM - assumed 'AUTH_REDIRECT_PARAM'

Filename: helpers/MY_url_helper.php

Line Number: 32

Backtrace:

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\helpers\MY_url_helper.php
Line: 32
Function: _error_handler

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\views\examples\page_header.php
Line: 43
Function: login_anchor

File: C:\xampp\htdocs\comAuth\application\controllers\Examples.php
Line: 203
Function: view

File: C:\xampp\htdocs\comAuth\index.php
Line: 315
Function: require_once

A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant LOGIN_PAGE - assumed 'LOGIN_PAGE'

Filename: helpers/MY_url_helper.php

Line Number: 34

Backtrace:

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\helpers\MY_url_helper.php
Line: 34
Function: _error_handler

File: C:\xampp\htdocs\comAuth\application\third_party\community_auth\views\examples\page_header.php
Line: 43
Function: login_anchor

File: C:\xampp\htdocs\comAuth\application\controllers\Examples.php
Line: 203
Function: view

File: C:\xampp\htdocs\comAuth\index.php
Line: 315
Function: require_once
proof that an old dog can learn new tricks
Reply
#12

Make sure you have hooks enabled in config/config. Then make sure you have defined Community Auth's hooks in config/hooks. This is described in the installation steps 9 and 12.
Reply
#13

(This post was last modified: 06-05-2018, 12:41 PM by richb201.)

That was it: Enable hooks. My next issue happens when I try "create user" from the menu. I am getting the following:

Severity: Warning
Message: fopen(C:\xampp\tmp\ci_sessionnvrdsil3kjd5698nccef9lse42u4r36s): failed to open stream: Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 172

Does this mean that Community Auth is directly reading and writing to the hard drive? This was one of the things I was advised that could not work on Google App Engine. Any idea why I am getting this error (warning)? Or is that an issue with CI in general and my plan to move to AppEngine would never work?
proof that an old dog can learn new tricks
Reply
#14

(This post was last modified: 06-05-2018, 01:29 PM by skunkbad.)

(06-05-2018, 09:36 AM)richb201 Wrote: That was it: Enable hooks. My next issue happens when I try "create user" from the menu. I am getting the following:

Severity: Warning
Message: fopen(C:\xampp\tmp\ci_sessionnvrdsil3kjd5698nccef9lse42u4r36s): failed to open stream: Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 172

Does this mean that Community Auth is directly reading and writing to the hard drive? This was one of the things I was advised that could not work on Google App Engine. Any idea why I am getting this error (warning)? Or is that an issue with CI in general and my plan to move to AppEngine would never work?

CodeIgniter is what maintains your session, and if you're using the files driver then there is a read/write to the filesystem. If you can, switch to the database driver.

I'm curious, why do you desire AppEngine?
Reply
#15

(This post was last modified: 06-05-2018, 02:55 PM by richb201.)

I need a dependable managed hoster with an expandable datastore. I am open to recommendations where my plain old CI app will run. The only thing a little different about this app is the need for xhr communication. Otherwise, plain vanilla.

BTW, that file, ci_sessionnvrdsil3kjd5698nccef9lse42u4r36s does exist in C\xampp\tmp. In looking at it permissions, it has Modify, Read&execute, Read, and Write allowed. So I don't know why?

Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (C:\xampp\tmp)

Shouldn't the path for this be in my public_html or somewhere in my application directory, anyway? I am sure that my shared hoster will not allow me to write session data to a public area. 
proof that an old dog can learn new tricks
Reply
#16

"Dependable managed hoster" So, like managed VPS?

"Expandable datastore" Meaning you can have infinite storage if necessary?

How many gigs of storage do you think you will need now, a year from now, and five years from now?
Reply
#17

(This post was last modified: 06-06-2018, 12:07 AM by richb201.)

Not sure. I did some calcs a while back. I figure 100 companies with 100 employees each writing 1 record per workday is the max. That is 10k records/day for 200 work days/year. That is 2000k records/year. This is just the pure activity data, not the setup data, which is finite. How many bytes in a record? I forget, but I think it is about 2k. The data needs to be kept for at least 3 years. So that is 6000k records at 2Kb each. Therefore I need 12K x 10^6 bytes of storage or 12G unless I made a mistake in my calcs. Most vps come with 2G.  So I may not need app engine but I need a hoster that can handle 12G? This is not huge; My desktop pc has 465G. Why is hosted disk space so rare?

But the real question is why is the session data being stored in the root of the xampp and can I change that location. Where?
proof that an old dog can learn new tricks
Reply
#18

You should be able to change session config in config.php.

I’ve been using this for 5 or 6 years and like it:
https://www.mddhosting.com/premium.php
Reply
#19

Thanks. I am always concerned when a hosted doesn't mention its database storage size (unlimited) which is BS. What do you know about Aws RDS? They mention up to 20G free mysql space which works for me. If I can use aws that might do it. I also see a hoster offering Sql vps which is a private database, which is closer to my needs. Ill check out the pricing tomorrow.

My app is for record keeping which is an accounting function. After I left software engineering (about 14 years ago), I got an mba in accounting, which is what I still do, for better or worse.
proof that an old dog can learn new tricks
Reply
#20

Where should I keep the sessions? \localhost\libraries\Session\ ? or somewhere else under my localhost?
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB