News:

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

Main Menu

Optimus

Started by Bugo, February 15, 2011, 03:48:12 PM

Previous topic - Next topic

Massl

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  :)

Bugo

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.

Massl

Quote from: Bugo 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 :)

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

Bugo

Quote from: Massl on July 08, 2020, 06:12:59 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.

Massl

Quote from: Bugo on July 08, 2020, 07:55:06 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

Bugo

You need to install the latest version of SMF from GitHub to properly work with v2.9.3.

gorbi

2.6.5 опять глюк

Massl

Quote from: Bugo 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.

Ah OK,  thanks  ;)

pocttopus

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!  :)

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)


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)

Bugo

Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...

njtweb

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?

Bugo

If it's okay, do not touch anything :)

njtweb

Quote from: Bugo on July 14, 2020, 02:50:03 PM
If it's okay, do not touch anything :)

Great, thank you!

AleksNet

#733
Hello!
Installed Optimus_2.9.3, it gives errors:

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:

[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:

[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:

[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.

Bugo

/Sources/Optimus/Integration.php
Quote from: Bugo on July 14, 2020, 04:37:03 AM
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...


AleksNet

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

AleksNet

Quote from: Bugo on July 15, 2020, 11:07:28 PM
/Sources/Optimus/Integration.php
Quote from: Bugo on July 14, 2020, 04:37:03 AM
Drag these lines from line 86-87 to line 32-33:
defined('OP_NAME') or define ...
defined('OP_VERSION') or define ...


Thank.
For help!

Bugo

Quote from: AleksNet 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
Try to copy database.php to a forum root and run via browser.

Massl

Quote from: Bugo 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.

Quote from: AleksNet on July 15, 2020, 10:32:48 PM
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

Bugo

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.

Advertisement: