News:

Wondering if this will always be free?  See why free is better.

Main Menu

Light Portal

Started by Bugo, March 25, 2020, 07:36:36 AM

Previous topic - Next topic

Darknico

Quote from: Bugo on January 24, 2025, 05:01:32 AMI've already fixed this error; you can see the fix here

Oh good, thanks!
I added the fix and work, good job :)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


cieplutki

please give me step by step instructions on how to start the blog block




.

Bugo

Quote from: Bugo on December 02, 2024, 01:34:34 PMAs for the blog, when creating a page, you can specify its type - regular (default), internal, or blog post. Accordingly, blog posts will be displayed at the address ?action=blog (or another one if specified in the settings of the BlogMode plugin). Also, don't forget to configure the appropriate permissions for your members.

Just enable the BlogMode plugin and start creating pages (or changing the type of already created pages) with the Blog type.

Bugo

v2.9.2

* Fixed identified issues
* Updated translations
* Refactored some code
* Updated Svelte components
* Updated some plugins
* Updated docs
* Changed build output format from `zip` to `tgz`
* Added Slovenian translation

In this release, our project on Crowdin came to life thanks to the joining of 3 new translators:

  • Added Slovenian translation, thanks to @grega
  • Updated Polish translation, thanks to @cieplutki
  • Updated Turkish translation, thanks to @Elmacik

As before, if you are using Optimus or SMF Tracy Debugger, they need to be updated along with the LP.

Note to testers: Due to numerous changes in the source code, the portal is temporarily incompatible with SMF 3.0. Please wait for a fix in the next release.

Darknico

Hi @Bugo
after update boom :(


QuoteFatal error: Uncaught TypeError: Cannot assign null to property Bugo\LightPortal\Plugins\Plugin::$context of type array in /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/Plugin.php:60 Stack trace: #0 [internal function]: Bugo\LightPortal\Plugins\Plugin->__construct() #1 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs() #2 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(185): League\Container\Definition\Definition->resolveClass() #3 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(164): League\Container\Definition\Definition->resolveNew() #4 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/DefinitionAggregate.php(83): League\Container\Definition\Definition->resolve() #5 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Container.php(175): League\Container\Definition\DefinitionAggregate->resolve() #6 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Container.php(118): League\Container\Container->resolve() #7 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Container.php(32): League\Container\Container->get() #8 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/app.php(28): Bugo\LightPortal\Container::get() #9 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/PluginHandler.php(105): app() #10 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/PluginHandler.php(49): Bugo\LightPortal\Plugins\PluginHandler->prepareListeners() #11 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/ServiceProvider.php(157): Bugo\LightPortal\Plugins\PluginHandler->__construct() #12 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Events/EventManagerFactory.php(32): Bugo\LightPortal\ServiceProvider->Bugo\LightPortal\{closure}() #13 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Hooks/LoadTheme.php(51): Bugo\LightPortal\Events\EventManagerFactory->__invoke() #14 /home/mhd-01/site.ext/htdocs/forum/Sources/Subs.php(5766): Bugo\LightPortal\Hooks\LoadTheme->__invoke() #15 /home/mhd-01/site.ext/htdocs/forum/Sources/Load.php(2674): call_integration_hook() #16 /home/mhd-01/site.ext/htdocs/forum/index.php(234): loadTheme() #17 /home/mhd-01/site.ext/htdocs/forum/index.php(191): smf_main() #18 {main} thrown in /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/Plugin.php on line 60

Optimus 3.0 RC2 is installed
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


cieplutki

installing modifications on a new, empty forum I have these errors:

Fatal error:
Uncaught TypeError: Cannot assign null to property Bugo\LightPortal\Plugins\Plugin::$context of type array in /usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/Plugin.php:60 Stack trace: #0 [internal function]: Bugo\LightPortal\Plugins\Plugin->__construct() #1

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs(Array) #2

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(185): League\Container\Definition\Definition->resolveClass('Bugo\\LightPorta...') #3

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(164): League\Container\Definition\Definition->resolveNew() #4

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/DefinitionAggregate.php(83): League\Container\Definition\Definition->resolve() #5

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Container.php(175): League\Container\Definition\DefinitionAggregate->resolve('Bugo\\LightPorta...') #6

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Container.php(118): League\Container\Container->resolve('Bugo\\LightPorta...') #7

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Container.php(32): League\Container\Container->get('Bugo\\LightPorta...') #8 /usr/home/*********/domains/*********/public_html/Sources/LightPortal/app.php(28): Bugo\LightPortal\Container::get('Bugo\\LightPorta...') #9

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/PluginHandler.php(105): app('Bugo\\LightPorta...') #10

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/PluginHandler.php(49): Bugo\LightPortal\Plugins\PluginHandler->prepareListeners(Array) #11

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/ServiceProvider.php(157): Bugo\LightPortal\Plugins\PluginHandler->__construct(Array) #12

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Events/EventManagerFactory.php(32): Bugo\LightPortal\ServiceProvider->Bugo\LightPortal\{closure}() #13

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Hooks/LoadTheme.php(51): Bugo\LightPortal\Events\EventManagerFactory->__invoke() #14

/usr/home/*********/domains/*********/public_html/Sources/Subs.php(5766): Bugo\LightPortal\Hooks\LoadTheme->__invoke() #15

/usr/home/*********/domains/*********/public_html/Sources/Load.php(2674): call_integration_hook('integrate_load_...') #16

/usr/home/*********/domains/*********/public_html/index.php(227): loadTheme() #17

/usr/home/*********/domains/*********/public_html/index.php(184): smf_main() #18

{main} thrown in /usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/Plugin.php on line 60





.

Bugo

Before this, there were no modifications on the forum, including previous versions?

Darknico

I updated from 2.9.1, no modification
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

If you previously downloaded any plugins, you need to update them as well. Try deleting the directory Sources/LightPortal/Plugins now, and then extract the updated directory from the archive of the latest version of the modification. You will need to download the plugins again.

Darknico

I tried but same issue
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo


Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

Then I will need a list of installed plugins.

cieplutki

Quote from: Bugo on February 06, 2025, 04:13:04 AMBefore this, there were no modifications on the forum, including previous versions?

No, just instaled smf and text install portal.




.

Darknico

#454
Quote from: Bugo on February 06, 2025, 04:30:03 AMThen I will need a list of installed plugins.

In smf_settings, lp_enabled_plugins
QuoteApexCharts,BoardNews,BoardStats,CodeMirror,HidingBlocks,MainMenu,News,PageScroll,RecentTopics,SimpleFeeder,UserInfo,WhosOnline

I removed all and now no error in homepage, but if try access in plugin page to enable one by one same issue

P.S. I removed old folder plugin and imported from archive
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

In Sources/LightPortal/Plugins/Plugin.php, you need to replace a line:

return basename(static::class);return basename(str_replace('\\', '/', static::class));
I will update the packages now.

Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

The moral of this tale is: don't forget about Linux :)

Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

v2.9.3

Now, after updating, all plugins are automatically disabled so that administrators can manually update and re-enable the necessary ones.

Nevertheless, it is best to remove all plugins from the Sources/LightPortal/Plugins folder manually before each update, this will reduce the number of possible problems.

Do not forget to create backups of the plugins that you created or edited yourself, otherwise you may lose the changes you made.

Advertisement: