phpDivingLog

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
Jinxzy
Posts: 6
Joined: Wed Jan 17, 2024 21:19

Re: phpDivingLog

Post by Jinxzy »

Hello, is this still maintained? I am back with a new setup. Anyone help with this?

Code: Select all

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/html/includes/misc.inc.php on line 875

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/html/includes/misc.inc.php on line 875

Warning: session_start(): Session cannot be started after headers have already been sent in /var/www/html/settings.php on line 227

Fatal error: Uncaught mysqli_sql_exception: Table 'divelog.DL_Logbook' doesn't exist in /var/www/html/includes/wp-db.php:1975 Stack trace: #0 /var/www/html/includes/wp-db.php(1975): mysqli_query(Object(mysqli), 'SELECT Number,...') #1 /var/www/html/includes/wp-db.php(1864): wpdb->_do_query('SELECT Number,...') #2 /var/www/html/includes/wp-db.php(2614): wpdb->query('SELECT Number,...') #3 /var/www/html/includes/misc.inc.php(186): wpdb->get_results('SELECT Number,...', 'ARRAY_A') #4 /var/www/html/classes.inc.php(1870): parse_mysql_query('', 'SELECT Number,...') #5 /var/www/html/classes.inc.php(1825): Divelog->get_dive_overview_table() #6 /var/www/html/index.php(73): Divelog->get_dive_overview() #7 {main} thrown in /var/www/html/includes/wp-db.php on line 1975
lloyd_borrett
Posts: 236
Joined: Sun Jun 11, 2006 09:24
Location: Frankston South, Victoria, Australia

Re: phpDivingLog

Post by lloyd_borrett »

My online Dive Log is finally back online. Yippee!

Back in July 2022, my web hosting provider required me to deny everybody but me access to my online Diving Log. They had upgraded the version of PHP on the web server, which resulted in the phpDivingLog code generating numerous "PHP Deprecated" code warnings in the error log file, severely impacting server performance.

Well, I've finally got around to doing something about it. After more than three years of not writing or looking at any programming language code, I went back into action.

First, I addressed the issues causing the "PHP Deprecated" code warnings. Along the way, I found some bugs that I fixed.

Additionally, as you do, I made some enhancements to the functionality of the Diving Log. It's what programmers do!

Then I looked at the Diving Log data itself. Some thirty dives were missing online compared to what I had offline. So, I added them. (There have only been about five dives since my last logged dive in October 2013. Thus, the dive log is almost complete.)

There were dives where there was no known dive site or information about my dive buddy. I fixed those that I could.

Then, there were plenty of dive sites with inaccurate or no GPS coordinates. I've been able to fix most of them.

I've added missing data and fixed incorrect data on many dives.

I've improved some existing and, where possible, added missing dive site descriptions.

I've added numerous dive area dive site map images, as well as images for dive site specific maps, where possible.

So now my online Dive Log is back. It may not matter to anybody else, but it matters to me.

Please feel free to check it out at https://www.borrett.id.au/divelog/index.php?view=list

P.S.: At this point, I have no plans to make this version of phpDivingLog available to others. It's a somewhat haphazard combination of what works for me. It's doubtful anyone else would get it working on their up-to-date web hosting setup.
https://www.borrett.id.au/divelog/ - Lloyd's Dive Log
https://www.borrett.id.au/core/ - Contact Lloyd
https://www.borrett.id.au/interests/phpdivinglog.htm - phpDivingLog
Jinxzy
Posts: 6
Joined: Wed Jan 17, 2024 21:19

Re: phpDivingLog

Post by Jinxzy »

lloyd_borrett wrote: Sat Aug 23, 2025 15:21 My online Dive Log is finally back online. Yippee!

Back in July 2022, my web hosting provider required me to deny everybody but me access to my online Diving Log. They had upgraded the version of PHP on the web server, which resulted in the phpDivingLog code generating numerous "PHP Deprecated" code warnings in the error log file, severely impacting server performance.

Well, I've finally got around to doing something about it. After more than three years of not writing or looking at any programming language code, I went back into action.

First, I addressed the issues causing the "PHP Deprecated" code warnings. Along the way, I found some bugs that I fixed.

Additionally, as you do, I made some enhancements to the functionality of the Diving Log. It's what programmers do!

Then I looked at the Diving Log data itself. Some thirty dives were missing online compared to what I had offline. So, I added them. (There have only been about five dives since my last logged dive in October 2013. Thus, the dive log is almost complete.)

There were dives where there was no known dive site or information about my dive buddy. I fixed those that I could.

Then, there were plenty of dive sites with inaccurate or no GPS coordinates. I've been able to fix most of them.

I've added missing data and fixed incorrect data on many dives.

I've improved some existing and, where possible, added missing dive site descriptions.

I've added numerous dive area dive site map images, as well as images for dive site specific maps, where possible.

So now my online Dive Log is back. It may not matter to anybody else, but it matters to me.

Please feel free to check it out at https://www.borrett.id.au/divelog/index.php?view=list

P.S.: At this point, I have no plans to make this version of phpDivingLog available to others. It's a somewhat haphazard combination of what works for me. It's doubtful anyone else would get it working on their up-to-date web hosting setup.
That is great news :D

I also got it working on my server. Still some things to fix myself but it is working :lol:

https://divelog.dipsydiver.com/index.php?view=list
ianleiman
Posts: 6
Joined: Thu Feb 04, 2021 12:46

Re: phpDivingLog

Post by ianleiman »

phpDivingLog was a great inspiration for me and I wanted something like that for myself.
But I hate PHP and love Python, so then decided to do something similar myself with Python.
So here is a sample of what I did:
https://eianlei.github.io/my-web-logbook/
This being hosted on Github pages.

You can find sources and instructions from Github for how to install and deploy my web-logbook:
https://github.com/eianlei/web-logbook-rel1

This is the main page of the web app:
divelogs-main.png
divelogs-main.png (148.95 KiB) Viewed 26735 times
It can also show a map of your dive sites:
divelogs-map.png
divelogs-map.png (107.88 KiB) Viewed 26735 times
And there is dive photo gallery integration:
divelogs-photos.png
divelogs-photos.png (800.28 KiB) Viewed 26735 times
Inferno
Posts: 266
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands

Redesigned phpDivingLog — modern UI + lots of fixes (open source)

Post by Inferno »

Hi everyone,

I've been working on a substantial redesign of phpDivingLog (the web publisher for our Diving Log exports) and wanted to share it. It's fully open source and still reads your Diving Log MySQL export read-only — nothing touches your data.

Modernized foundation
  • Rebuilt on a clean, layered PHP 8.3+ architecture (PDO repositories + Twig templates + a JSON API).
  • Retired the old Smarty / wp-db / jqPlot stack.
  • Web app now served from public/, configured via a simple .env file (no more editing PHP config).
  • Added automated tests, static analysis, and coding-standard checks.
New look & feel (Material Design 3 / Beer CSS)
  • Modern, responsive UI with an accessible light/dark theme toggle.
  • Switchable color palettes (Reef / Sunset / Kelp / Abyss), remembered per browser.
  • All assets vendored locally — no external CDN, works offline.
  • App title/branding now shows your own name from your Personal profile.
Dive detail improvements
  • Sticky Logbook pane with smooth previous/next navigation (no more page jumping).
  • Theme-aware dive profile graph.
  • Tank info now also shows when gas data is stored on the dive row (not just the Tank table).
Dive site pages
  • Previous/next site navigation.
  • Google Maps link generated from the site coordinates.
  • Max depth and water type (Salt/Fresh/Brackish) derived from your dives.
  • Site photo gallery + lightbox, and clickable map images.
Countries, overview & stats
  • Fixed country pages so dive sites show even when sites aren't directly stamped with a country.
  • Dive overview now shows profile and photo indicator icons per dive.
  • Certifications section on the statistics page — reads your Brevets table (organisation, brevet, date, number, instructor) and shows your front/back card scans with a lightbox.
Robustness
  • Schema-agnostic profile/data loading that survives missing optional columns across different Diving Log export versions.
Feedback, testers, and bug reports are very welcome — especially from anyone whose export uses slightly different column/table names, so I can keep the compatibility mappings solid.

Thanks, and safe diving!
Rob Lensen

Live demo: https://divelog.lensen.nu/
Source (GitHub): github.com/Infern1/phpDivinglog
divinglog
Site Admin
Posts: 6027
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: phpDivingLog

Post by divinglog »

Hi Rob,

Wow, great work! Looks really modern. Just some minor feedback I've noticed:

When clicking a dive in the sidebar, the page does not maintain the main scroll position of the page and always jumps back to the top. No idea if this is fixable, but it would certainly improve the browsing.
Inferno
Posts: 266
Joined: Thu Apr 19, 2007 20:36
Location: The Netherlands

Re: phpDivingLog

Post by Inferno »

divinglog wrote: Mon Jul 06, 2026 13:11 Hi Rob,

Wow, great work! Looks really modern. Just some minor feedback I've noticed:

When clicking a dive in the sidebar, the page does not maintain the main scroll position of the page and always jumps back to the top. No idea if this is fixable, but it would certainly improve the browsing.
Thanks for the feedback, tried to improve it, feels better like this
lloyd_borrett
Posts: 236
Joined: Sun Jun 11, 2006 09:24
Location: Frankston South, Victoria, Australia

Re: phpDivingLog

Post by lloyd_borrett »

Great work, Rob.

One thing I was keen to add to phpDivingLog was support for metadata to improve visibility in search engines. Never figured out how to bodge the code to get it working properly.

That is, generating at a minimum a unique title, description, and canonical tags, plus maybe a unique WebPage schema markup for each page.

Best regards, Lloyd Borrett.
https://www.borrett.id.au/divelog/ - Lloyd's Dive Log
https://www.borrett.id.au/core/ - Contact Lloyd
https://www.borrett.id.au/interests/phpdivinglog.htm - phpDivingLog
Post Reply