Advertisement:

Author Topic: Migrated to a new server => Database error inet_aton  (Read 430 times)

Offline lepidas

  • Jr. Member
  • **
  • Posts: 228
  • snowguide.gr
    • http://www.snowguide.gr
Migrated to a new server => Database error inet_aton
« on: January 09, 2019, 12:54:03 AM »
Hello to all,
I run smf for quite some years now under Ubuntu and php 5.6. Last week decided to migrate my forum to Ubuntu 18.04 with php7.2 and then is when all started going blue.
The problem is some times smf is unreachable and gives this
Code: [Select]
Database Error
Incorrect string value: '''' for function inet_aton
File: /var/www/forum/html/Sources/Subs.php
Line: 2691

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.15, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.

Quoting also became impossible

Before migrating to new server I have uninstalled all mods (WYSIWYG Quick Reply, Remove Help From Menu, Yet Another YouTube BBCode Tag, Stop Spammer)
Also the logs are full of errors. What should I do; what does this inet_aton means;

Thanx in advance for any replies.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,398
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Migrated to a new server => Database error inet_aton
« Reply #1 on: January 09, 2019, 01:30:34 AM »
Turn off IPv6 on your webserver in apache.
it is picking up an IPV6 address which SMF 2.0 does not support.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,329
  • Gender: Male
    • Kindred-999 on GitHub
Re: Migrated to a new server => Database error inet_aton
« Reply #2 on: January 09, 2019, 02:49:28 AM »
Also., smf does not support php 7.2 yet
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline lepidas

  • Jr. Member
  • **
  • Posts: 228
  • snowguide.gr
    • http://www.snowguide.gr
Re: Migrated to a new server => Database error inet_aton
« Reply #3 on: January 09, 2019, 03:45:34 AM »
Also., smf does not support php 7.2 yet
So that's why in the logs
Code: [Select]
8192: Function create_function() is deprecated
Apply Filter: Only show the errors from this file
File: /var/www/forum/html/Sources/Subs.php

Do you know which php 7.* -v does support; I can install again.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,145
  • Gender: Male
    • i30 Owners Club
Re: Migrated to a new server => Database error inet_aton
« Reply #4 on: January 09, 2019, 04:23:05 AM »
I'm running SMF 2.0.15 fine with PHP 7.1.25

Offline lepidas

  • Jr. Member
  • **
  • Posts: 228
  • snowguide.gr
    • http://www.snowguide.gr
Re: Migrated to a new server => Database error inet_aton
« Reply #5 on: January 09, 2019, 04:34:53 AM »
For the moment I installed this mod     SMF 2.0.X - PHP 7.2+ Compatibility
to stop error logs. Later will install a box with php7.1 to see what happens. Thanx to all, thanx @Sh@mbles