phpDivingLog

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

So I found the way for Firefox to display the URL prefix and it my management screen is an https, but it appears my website is still just http.

Image

I also tried editing this line of code in the config file to http, https, and localhost and the URL DNS name , but that didnt seem to work either.

Code: Select all

$_config['web_root'] = 'http://mouse.myds.me/'; 
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

might be related to this issue:

https://github.com/Infern1/phpDivinglog/issues/6

Will have a look
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

Cool...appreciate you looking into this and for the help. I will continue to poke at it and see what I can get working.
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

Ok...I think im making some headway on my issue, but need some advise.

Im now getting the following error on my webpage
"Warning: mysqli_connect(): (HY000/2002): No such file or directory in /volume1/web/includes/misc.inc.php on line 195 Warning: mysqli_set_charset() expects parameter 1 to be mysqli, bool given in /volume1/web/includes/misc.inc.php on line 197 Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /volume1/web/includes/misc.inc.php on line 198 Error loading character set utf8:"
Below is the line of code that is referenced in the error message. Below that is my config file that I believe the file mentioned above is referencing for info.

Image

Image
DieterKoblenz
Posts: 1
Joined: Sun Aug 15, 2021 09:19

Re: phpDivingLog

Post by DieterKoblenz »

Hi everyone, I just created by own instance of phpDivingLog. Worked almost out of the box (I had to force a lower php version). Still working out some kinks with certifications not showing up.
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

DieterKoblenz wrote: Sun Aug 15, 2021 09:23 Hi everyone, I just created by own instance of phpDivingLog. Worked almost out of the box (I had to force a lower php version). Still working out some kinks with certifications not showing up.
Looking forward to trying it out :wink:
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

So I made a lot of fixes to phpDivinglog.

Release is here: https://github.com/Infern1/phpDivinglog ... s/v3.2.zip

Code: Select all

phpDivingLog v3.2 - 2021-08-20 - Rob Lensen
    * Update Smarty latest version 
    * Review a lot of PHP warnings and updated code accordingly
    * Removed multiuser
    * Changed to lightgallery from HighslideJS   
divinglog
Site Admin
Posts: 5855
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: phpDivingLog

Post by divinglog »

Great work!
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

Another small update
v3.2.1

https://github.com/Infern1/phpDivinglog/releases

Problems mentioned on github.
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

Im seeing the following error after updating to the new version...

Fatal error: Uncaught Error: Call to undefined function is__writeable() in /volume1/web/settings.php:160 Stack trace: #0 /volume1/web/config.inc.php(282): require_once() #1 /volume1/web/index.php(21): require_once('/volume1/web/co...') #2 {main} thrown in /volume1/web/settings.php on line 160
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

I will check
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

Mouse51180 wrote: Sun Jan 16, 2022 22:01 Im seeing the following error after updating to the new version...

Fatal error: Uncaught Error: Call to undefined function is__writeable() in /volume1/web/settings.php:160 Stack trace: #0 /volume1/web/config.inc.php(282): require_once() #1 /volume1/web/index.php(21): require_once('/volume1/web/co...') #2 {main} thrown in /volume1/web/settings.php on line 160
Strange the function is__writeable should be located in misc.inc.php can you check?
https://github.com/Infern1/phpDivinglog ... c.php#L324
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

I see the line of code you referenced in the misc.inc.php file. This file is located in the \includes\ folder.

I see there is a $filepath portion in the code...in not a coder so I am not sure where this is trying to pull the reference from...im sure im just missing this in the config file or where ever it might need to go...or does this file belong in somewhere else link in the root folder instead of inside the \includes\ folder?
Mouse51180
Posts: 31
Joined: Thu Aug 01, 2013 15:08

Re: phpDivingLog

Post by Mouse51180 »

I think I found part of my issue. Looks like my files did not copy properly.

I made a backup of the folder and then deleted the directory, reuploaded the new files to confirm they are all updated, and then copied whatever files\folders were not in your download over from my backup (i.e. my phpDivelog and phpMyAdmin folders).

I think this cleared the previous error.

I recreated my config file, but I am seeing a new error now that states:

Code: Select all

Warning: mysqli_connect(): (HY000/2002): No such file or directory in /volume1/web/includes/misc.inc.php on line 189 
Warning: mysqli_set_charset() expects parameter 1 to be mysqli, bool given in /volume1/web/includes/misc.inc.php on line 191 
Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /volume1/web/includes/misc.inc.php on line 192 
Error loading character set utf8: 
This looks to reference the MyPHP Server connection info in the config.inc.php file...im guessing. Im not a programmer so im trying to figure out how its referencing this file so I can put it in the correct location or what I need to change in the config to make it available to this function. I dont think it should be in the /web/includes/ folder. I tried moving in there just to see if it would make a difference and nothing changed so I moved it back.

Thanks for the help
Inferno
Posts: 264
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands
Contact:

Re: phpDivingLog

Post by Inferno »

Can you share the output of phpinfo() ?

Like mentioned here: https://www.dpscomputing.com/blog/2021/ ... directory/

How did you define your mysql server name in config.inc.php

More info : https://unix.stackexchange.com/a/619187
Post Reply