News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Recent posts

#1
Modifications and Packages / Re: Optimus
Last post by Bugo - Today at 09:37:37 PM
The latest version is 3.0 RC4 now. The file mentioned in your error is from some previous version. Therefore, you need to clear all its references in the smf_background_tasks table.
#2
Modifications and Packages / Re: Optimus
Last post by Oldiesmann - Today at 09:01:04 PM
Upgraded to the latest version and keep seeing this error in my error log:

https://www.archiefans.com/cron.php
/.../Sources/Optimus/Task.php (Line 37)
Call to undefined function Bugo\Optimus\is_on()
#3
vBulletin / Re: Convert vB 4.0.3 to SMF 2....
Last post by CapnK - Today at 08:00:58 PM
Would have liked to add this to the above, but I guess it timed out.

By commenting out the offending lines (per the log), I get a large chunk of the db converted, but not *all* of it. Obviously, I am not a coder - yet over the years I have figured out how to, well, figure out what is supposed to be happening, and where it's not. So I'll be researching the below, and in the meanwhile if anyone has any help or hints, feel free to chime in!

EDIT: It looks like "ADO" is a Windows-only, Azure thing. As I'm running on LAMP w/MySQL - seems I could just delete the ADO-related code content...? Anyone? Bueller? ;)

From the error log:

[30-Jun-2025 23:58:45 UTC] PHP Notice:  Undefined property: mysqli_result::$EOF in /home/xxx/forum/convert.php on line 2731
[30-Jun-2025 23:58:45 UTC] PHP Notice:  Undefined property: mysqli_result::$Fields in /home/xxx/forum/convert.php on line 2735
[30-Jun-2025 23:58:45 UTC] PHP Notice:  Trying to get property 'Count' of non-object in /home/xxx/forum/convert.php on line 2736
[30-Jun-2025 23:58:45 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method mysqli_result::MoveNext() in /home/xxx/forum/convert.php:2741
Stack trace:
#0 /home/xxx/forum/convert.php(1261): convert_fetch_assoc(Object(mysqli_result))
#1 /home/xxx/forum/convert.php(62): doStep1()
#2 {main}
  thrown in /home/xxx/forum/convert.php on line 2741



The relevant lines of code:

Line 1261
while ($row = convert_fetch_assoc($special_result))
          {
            if ($special_code !== null)
            eval($special_code);

// Here we have various bits of custom code for some known problems global to all converters.
      if ($special_table == $to_prefix . 'members')
    {
// Let's ensure there are no illegal characters.
      $row['member_name'] = preg_replace('/[<>&"\'=\\\]/is', '', $row['member_name']);
      $row['real_name'] = trim($row['real_name'], " \t\n\r\x0B\0\xA0");

      if (strpos($row['real_name'], '<') !== false || strpos($row['real_name'], '>') !== false || strpos($row['real_name'], '& ') !== false)
      $row['real_name'] = htmlspecialchars($row['real_name'], ENT_QUOTES);
                            else
      $row['real_name'] = strtr($row['real_name'], array('\'' => '&#039;'));



...which goes out to the line starting at 2731...

// Okay, the hardest is ADO (Windows only, by the way.)
    if (!is_resource($result) && is_object($result))
    {
        //if ($result->EOF)
        //    return false;

        $row = array();
        $fields = $result->Fields;
        for ($i = 0, $n = $fields->Count; $i < $n; $i++)
        {
            $field = $fields[$i];
            $row[$field->Name] = $field->Value;
        }
        $result->MoveNext();

        return $row;
    }
#4
Modifications and Packages / Re: BBC Topics List
Last post by Diego Andrés - Today at 07:01:39 PM
Where would be the appropriate place to display it? Below the topic?
You can try adding it like this:

Sources/BBC-TopicsList.php
Code (Search) Select
t.id_topic, t.id_board, t.approved, t.id_first_msg,
Code (Replace) Select
t.id_topic, t.id_board, t.approved, t.id_first_msg, t.description,
Code (Search) Select
                    'subject' => $row['subject'],
Code (Replace) Select
                    'subject' => $row['subject'],
                    'description' => $row['description'] ?? '',


Themes/default/TopicsList.template.php
Code (Search) Select
<a href="' . $scripturl . '?topic=' . $topic_info['id_topic'] . '.0">' . $topic_info['subject'] . '</a>
Code (Replace) Select
<a href="' . $scripturl . '?topic=' . $topic_info['id_topic'] . '.0">' . $topic_info['subject'] . '</a><span class="smalltext" style="flex-grow:1;width:100%;padding-inline:1.75rem 0.5rem;">' . $topic_info['description'] . '</span>
#5
Tips and Tricks / Re: CIDR List Cleaner
Last post by Skhilled - Today at 06:55:44 PM
Excellent! Thanks!
#6
vBulletin / Convert vB 4.0.3 to SMF 2.0.19...
Last post by CapnK - Today at 05:58:22 PM
OK, so I did much reading and research before (and now, during) trying the conversion. The vB4 converter thread starts out saying to use SMF 2.0-rc3, but later posts say that it works with later versions. Seeing several mentions of 2.0.19, I tried that first. After fixing the first error (re: removing "SET SQL_MAX_JOIN_SIZE" from convert.php), it started running and then hung up at the 'Convert Members' point, so I tried to go back further...

I gave a try at installing 2.0-rc3, but that would hang up trying to use postgresql, and I could not get a connection to my MySQL db (LAMP server) even after trying to change that in the settings.php file...

So I'm back to 2.0.19 to try again, because at least this version has shown *some* progress.

The issue is that the converter runs, db is accessed OK, and converter starts converting - but then hangs at "Converting Members...".

I can look at the SMF db in phpMyAdmin and see that table names have apparently been imported from the vB database.

EDITI have looked for an error log so that I can see what and why it is failing, and cannot find one. Is there a log? I'm not getting any error emails at the address I used during config.
Found the error log - it must not have been being generated in my prior attempt. WIll start working my way thru errors.

I've set my server to use php 7.3 for now, for compatibility reasons. DB version: 10.6.22-MariaDB-cll-lve-log

At a loss here. Would really like to get this old forum moved over to this better solution. :) Any ideas?

TIA!
#7
SMF 2.1.x Support / Re: Call to undefined function...
Last post by bob42 - Today at 05:36:36 PM
I feel a bit foolish, but thanks for the link.
#9
SMF 2.1.x Support / Call to undefined function idn...
Last post by bob42 - Today at 05:16:44 PM
We started receiving the "Call to undefined function idna_maps_not_std3()" error about 3 days after upgrading to version 2.1.5. It occurs on some forum topics and some admin pages. Unfortunately, we revert to the previous version to test the idea that the new version is the root cause of the problem because the error occurs when we attempt to go back to the previous version. We are using PHP 7.4.20 and MySQL.

Any help would be appreciated.
#10
Bug Reports / Re: Fatal Error: Call to unde...
Last post by marcomilano - Today at 03:04:49 PM
Quote from: Darkness7148 on June 28, 2025, 05:39:50 AMJust been greeted with this fatal error on my forum on every page.

Fatal error: Uncaught Error: Call to undefined function idna_maps_not_std3()

You cannot view this attachment.

I've had to comment out the call to the function in Class-Punycode.php, Lines 536/537.

SMF 2.1.6.

it works, thanks!
Advertisement: