Advertisement:

Author Topic: Optimus  (Read 224402 times)

Offline Massl

  • Jr. Member
  • **
  • Posts: 334
Re: Optimus
« Reply #720 on: July 08, 2020, 04:39:37 AM »
Also with http://yourforum/sitemap.xml I am redirected to the home.

OP_VERSION present also on new 2.9.3 release.

It's correct that on robots.txt editor there isn't sitemap url?

Thanks Bugo  :)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #721 on: July 08, 2020, 04:52:35 AM »
At first, you should create sitemap.xml, clean cache, and then the link will be working. I thought it goes without saying :)
I have no ideas about the problem with OP_VERSION.
It works for the latest version of SMF (from Github), which has an integrate_load_session hook.

Offline Massl

  • Jr. Member
  • **
  • Posts: 334
Re: Optimus
« Reply #722 on: July 08, 2020, 06:12:59 AM »
At first, you should create sitemap.xml, clean cache, and then the link will be working. I thought it goes without saying :)

Thanks Bugo, now it works but it is empty.
Do I have to wait 24 hours for the first creation too?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #723 on: July 08, 2020, 07:55:06 AM »
Do I have to wait 24 hours for the first creation too?
Yes, it depends on the new setting "How often the map is updated". Or you can manually re-run Daily Maintenance or Weekly Maintenance via Scheduled Tasks.

Offline Massl

  • Jr. Member
  • **
  • Posts: 334
Re: Optimus
« Reply #724 on: July 08, 2020, 09:16:38 AM »
Or you can manually re-run Daily Maintenance or Weekly Maintenance via Scheduled Tasks.

Do you mean these?
I run these but sitemap.xml is always empty.
The file is in the right path...

Thanks

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #725 on: July 08, 2020, 10:27:49 AM »
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

Offline gorbi

  • Jr. Member
  • **
  • Posts: 185
    • https://www.facebook.com/s.gorbachevsky on Facebook
    • @gorbachevsky on Twitter
Re: Optimus
« Reply #726 on: July 08, 2020, 02:00:07 PM »
2.6.5 опять глюк

Offline Massl

  • Jr. Member
  • **
  • Posts: 334
Re: Optimus
« Reply #727 on: July 08, 2020, 04:44:11 PM »
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

Ah OK,  thanks  ;)

Offline pocttopus

  • Full Member
  • ***
  • Posts: 499
  • Low pressure
    • @pocttopus on Twitter
    • mkreef.com
Re: Optimus
« Reply #728 on: July 14, 2020, 02:50:11 AM »
Hello,

I am using 2.1rc2 forum version and optimus 2.9 [04.06.20] but somehow I am receiving a lot of error's on lines 86 and 87.
Is there any fix for this? Thanks!  :)

Code: [Select]
Type of error: General
8: Constant OP_VERSION already defined https://renaultclub.mk/index.php?action=login2
/xxxx/public_html/Sources/Optimus/Integration.php (Line 87)

Code: [Select]
Type of error: General
8: Constant OP_NAME already defined https://renaultclub.mk/index.php?action=login2
/xxxx/public_html/Sources/Optimus/Integration.php (Line 86)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #729 on: July 14, 2020, 04:37:03 AM »
Drag these lines from line 86-87 to line 32-33:
Code: [Select]
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...

Offline njtweb

  • Sophist Member
  • *****
  • Posts: 1,101
Re: Optimus
« Reply #730 on: July 14, 2020, 10:54:21 AM »
Hi Bugo, I'm on SMF 2.0.17 and Optimus 2.2 which is working without issue. Do I need to upgrade if all is working fine?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #731 on: July 14, 2020, 02:50:03 PM »
If it's okay, do not touch anything :)

Offline njtweb

  • Sophist Member
  • *****
  • Posts: 1,101
Re: Optimus
« Reply #732 on: July 14, 2020, 03:06:03 PM »
If it's okay, do not touch anything :)

Great, thank you!

Offline AleksNet

  • Newbie
  • *
  • Posts: 4
Re: Optimus
« Reply #733 on: July 15, 2020, 10:32:48 PM »
Hello!
Installed Optimus_2.9.3, it gives errors:

Code: [Select]
2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 164)

2: Use of undefined constant OP_VERSION - assumed 'OP_VERSION' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 146)

2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
/Sources/Optimus/Settings.php (Строка 122)

If you click on the icon next to "Error type", then it displays:
For the first error:
Code: [Select]
[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 164
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 164
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153

For the second error:
Code: [Select]
[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_VERSION - assumed 'OP_VERSION' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 146
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 146
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153

For the third error:
Code: [Select]
[b]Error[/b]
Error type: Undefined_vars
Error message: 2: Use of undefined constant OP_NAME - assumed 'OP_NAME' (this will throw an Error in a future version of PHP)
File: /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php
Line: 122
URL error on page: http://ххххх.ru/?action=admin;area=optimus;a1898540baf=d56d405831c4b0c81e973c12550ef7f6

[b]Trace data[/b]
#0: smf_error_handler()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 122
#1: settingActions()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Optimus/Settings.php in line 77
#2: Bugo\Optimus\{closure}()
Call from /var/www/ххххх/data/www/ххххх.ru/Sources/Admin.php in line 497
#3: AdminMain()
Call from /var/www/ххххх/data/www/ххххх.ru/index.php in line 153

Forum version: SMF_2-1-rc2

Tell me how to fix it or what could be the problem.
« Last Edit: July 15, 2020, 11:03:00 PM by AleksNet »

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #734 on: July 15, 2020, 11:07:28 PM »
/Sources/Optimus/Integration.php
Drag these lines from line 86-87 to line 32-33:
Code: [Select]
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...

Offline AleksNet

  • Newbie
  • *
  • Posts: 4
Re: Optimus
« Reply #735 on: July 15, 2020, 11:39:16 PM »
If I understand correctly, then during the installation the table "optimus_keywords" should have been created in the database?
But nothing was created in the DB

Offline AleksNet

  • Newbie
  • *
  • Posts: 4
Re: Optimus
« Reply #736 on: July 15, 2020, 11:42:31 PM »
/Sources/Optimus/Integration.php
Drag these lines from line 86-87 to line 32-33:
Code: [Select]
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...

Thank.
For help!

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #737 on: July 16, 2020, 12:50:07 AM »
If I understand correctly, then during the installation the table "optimus_keywords" should have been created in the database?
But nothing was created in the DB
Try to copy database.php to a forum root and run via browser.

Offline Massl

  • Jr. Member
  • **
  • Posts: 334
Re: Optimus
« Reply #738 on: July 16, 2020, 03:14:17 AM »
You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

Installed Optimus_2.9.3
Forum version: SMF_2-1-rc2

Sorry but I don't understand... 2.9.3 is compatible or not with 2.1 RC2?

Thanks

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,659
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #739 on: July 16, 2020, 04:16:33 AM »
Some features require the latest changes from SMF 2.1 GitHub.
I'll try to fix them in the next version.
In any case, if you are using the SMF 2.1, you should understand possible risks.