Optimus

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

Previous topic - Next topic

Bugo

@Pieszyce, Optimus does not change source files

Pieszyce

#1121

Oke, I understand, but how can I repair this

because Now I cannot make a recount for the sitemap

and it showed up after the last Optimus install, that why I connected it together like a layman
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

Pieszyce


Dear Bugo

Today my host put the forum in a subdomain at my request, it worked perfectly after that.

 It was strange that even though Optimus 3.0 Beta was installed in Packages, Optimus was present with all its features, including sitemap settings, etc., etc.

I decided to install Optimus 3.0 Beta with the following result, so the forum is inaccessible.

QuoteFatal error: Uncaught Error: Undefined constant Bugo\Optimus\Addons\ExampleAddon::PACKAGE_ID in /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php:52 Stack trace: #0 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Libs/league/event/src/PrioritizedListenerRegistry.php(56): Bugo\Optimus\Handlers\AddonHandler->subscribeListeners() #1 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Libs/league/event/src/EventDispatcher.php(84): League\Event\PrioritizedListenerRegistry->subscribeListenersFrom() #2 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php(34): League\Event\EventDispatcher->subscribeListenersFrom() #3 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/HandlerLoader.php(39): Bugo\Optimus\Handlers\AddonHandler->__invoke() #4 [internal function]: Bugo\Optimus\Handlers\HandlerLoader::Bugo\Optimus\Handlers\{closure}() #5 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/HandlerLoader.php(39): array_map() #6 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Prime.php(29): Bugo\Optimus\Handlers\HandlerLoader->__construct() #7 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/app.php(24): Bugo\Optimus\Prime->__construct() #8 /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Load.php(439): require_once('/home/g101178/d...') #9 /home/g101178/domains/forum.polenforum.nl/public_html/index.php(143): reloadSettings() #10 {main} thrown in /home/g101178/domains/forum.polenforum.nl/public_html/Sources/Optimus/Handlers/AddonHandler.php on line 52[/quote]
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

Bugo

In such cases you can just delete/rename the Sources/Optimus folder, since the mod doesn't change anything anywhere and works on hooks. Then uninstall all versions of Optimus via Package Manager, download and install the latest 3.0 Beta. Don't look at the archive size, you need the latest version by date.

InfoStrides

Quote from: Bugo on August 04, 2024, 10:23:44 AM@InfoStrides, go to the Package Manager => File Permissions area and make sure that your forum root directory is writable.

I changed the permission as advised, then deactivated and reactivated the mod but no luck.

Pieszyce

Quote from: Bugo on August 06, 2024, 01:57:07 PMIn such cases you can just delete/rename the Sources/Optimus folder, since the mod doesn't change anything anywhere and works on hooks. Then uninstall all versions of Optimus via Package Manager, download and install the latest 3.0 Beta. Don't look at the archive size, you need the latest version by date.

Done,

And so far I can see, no errors.

But I did not activate your Pretty url links. Also because I had the idea that you were not happy with that link.

Thanks for the moment. ;)
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

Pieszyce

Hi Bugo,

The forum is now in a subdomain. Optimus generates a .htaccess containing the following lines.

Quote# PRETTYURLS MOD BEGINS                  <<
# Pretty URLs mod                        <<
# http://code.google.com/p/prettyurls/                    <<
# .htaccess file generated automatically on: May 14, 2024, 0:07      <<

RewriteEngine on
RewriteBase /forum-over-polen

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]      <<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]    <<

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$          <<  ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]                    <<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$              ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]          <<

# PRETTYURLS MOD ENDS        <<

I don't plan on ever using Pretty urls and everything is disabled.

The .htaccess is in the subdomain. Can I remove all the lines with    <<    without any problems so I can use the map for

order allow,deny
Deny from 50.114.*.*
allow from all

??

The Sitemap works fine now.   ;D
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

Bugo

Optimus does not generate .htaccess files, it just allows to create/edit them :)

Pieszyce


It has also nothing to do with your Pretty urls support?

Because of this?

QuoteI've been pondering lately whether to remove Pretty Urls support altogether, since it does more harm than good.

Also not any idea what I can do?
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

@rjen

Just take it out if you are not using the mod.

Better: take a local copy, update tot your liking and test the result.

If you don't like it put back the copy you made
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Pieszyce

Quote from: @rjen on August 14, 2024, 01:01:59 PMJust take it out if you are not using the mod.


Optimus I use, but not the link to Pretty Urls because of many problems.
That's why I thought Optimus had generated that .htaccess.

I know enough and thank you.

I think post#1130 is in te wrong topic  ;D  ;D  ;D
Gebruikt SMF 2.1.4 © 2023, Simple Machines,
TinyPortal 2.2.2 © 2005-2022
Curve2 Color Changer    1.4.1    
 Optimus    3.0 Beta 
 Post Subject Length    1.1

Advertisement: