3.1 & 3.2 Extensions Database 3.1 / 3.2Screen resolution in viewtopic

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Ubuntu Chrome

Re: Screen resolution in viewtopic

Post by martin »

Once installed it wont show until the user signs in :tumbsyes:
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

NAPWR
Donator
Donator
Status: Offline
User theme: Dark
Posts: 47
Joined: May 21st, '17, 12:30
    Windows 7 Chrome

Re: Screen resolution in viewtopic

Post by NAPWR »

Works fine on PHPBB3.2.3

purged users, purged cache, and logged out and back in. :buigen: :mml: :beers: :tumbsyes:
My name is Dave I, and all things are out there, and we are in here :mml:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

max-ima
Users
Users
Status: Offline
User theme: Dark
Posts: 139
Joined: Mar 25th, '22, 06:11
    Windows 10 Firefox

Re: Screen resolution in viewtopic

Post by max-ima »

Tested on 3.3.7 and works. Thanks

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

ivailo95
Users
Users
Status: Offline
User theme: Dark
Posts: 919
Joined: Feb 2nd, '18, 11:04
    Windows 10 Firefox

Re: Screen resolution in viewtopic

Post by ivailo95 »

Version 3.3.8

Code: Select all

phpBB encountered an error building the container due to an installed extension. For this reason, all extensions have been temporarily disabled. Please try purging your forum cache. All extensions will automatically be re-enabled once the container error is resolved. If this error continues, please visit phpBB.com for support.


Exception: The file "/home/bgrockeu/public_html/ext/dmzx/screenresolution/config/services.yml" does not contain valid YAML: The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 5 (near "- @request").

#0 /home/bgrockeu/public_html/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(117): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile('/home/bgrockeu/...')
#1 /home/bgrockeu/public_html/phpbb/extension/di/extension_base.php(99): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('services.yml')
#2 /home/bgrockeu/public_html/phpbb/extension/di/extension_base.php(63): phpbb\extension\di\extension_base->load_services(Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
#3 /home/bgrockeu/public_html/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(71): phpbb\extension\di\extension_base->load(Array, Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
#4 /home/bgrockeu/public_html/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#5 /home/bgrockeu/public_html/vendor/symfony/dependency-injection/Compiler/Compiler.php(140): Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#6 /home/bgrockeu/public_html/vendor/symfony/dependency-injection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#7 /home/bgrockeu/public_html/phpbb/di/container_builder.php(223): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#8 /home/bgrockeu/public_html/common.php(117): phpbb\di\container_builder->get_container()
#9 /home/bgrockeu/public_html/adm/index.php(23): require('/home/bgrockeu/...')
#10 {main}
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Feed like a disease
And bring them to their knees
They'll pay for their deceit

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

ssl
Users
Users
Status: Offline
User theme: Dark
Posts: 139
Joined: Aug 19th, '20, 10:54
    Mac OS X Opera

Re: Screen resolution in viewtopic

Post by ssl »

Replace services.yml file by this:

Code: Select all

services:
    dmzx.screenresolution.listener:
        class: dmzx\screenresolution\event\listener
        arguments:
            - '@request'
            - '@dbal.conn'
            - '@user'
            - '@template'
        tags:
            - { name: event.listener }
phpBB: 3.3.15 | PHP: 8.4
[Some French translation of extensions]

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Fredisland
Users
Users
Status: Offline
User theme: Dark
Posts: 7
Joined: May 10th, '23, 18:26
    Windows 10 Firefox

Re: Screen resolution in viewtopic

Post by Fredisland »

(phpBB 3.3.10 - PHP 8.12)

Great extension, but doesn't work :sad: . Resolution field is empty.
I modified services.yml to install the extension, I purged phpBB cache, I logged out, I purged browser cache, I logged in... And the filed is always empty. Do you know if it's just a problem with phpBB 3.3.10 ?

Thank you very much.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

It works.
Screenshot from 2023-05-19 22-16-53.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 507
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Screen resolution in viewtopic

Post by clight77 »

Fredisland wrote: May 19th, '23, 15:02 (phpBB 3.3.10 - PHP 8.12)

Great extension, but doesn't work :sad: . Resolution field is empty.
I modified services.yml to install the extension, I purged phpBB cache, I logged out, I purged browser cache, I logged in... And the filed is always empty. Do you know if it's just a problem with phpBB 3.3.10 ?

Thank you very much.
I am on 3.3.10 and it works fine, maybe you have another ext conflicting it.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Sll post removed for being a dork

Board version: 3.3.10
1.png
Screenshot from 2023-05-20 00-31-58.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Screen resolution in viewtopic

Post by Sniper_E »

Same observation, the value is empty in viewtopic. The user_resolution colume value is empty in database also.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

You need to log out then back in so it can grab data.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Screen resolution in viewtopic

Post by Sniper_E »

martin wrote: May 19th, '23, 23:35 You need to log out then back in so it can grab data.
That worked. And those instructions are on the first post in this topic. Now I feel like a ssl.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Just for info it DOES work on 3.3.10 just done a fresh install.
1.png
2.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Screen resolution in viewtopic

Post by Sniper_E »

Yea they got it... "Just log out then back in so it can grab data."

I would even add, purge sessions in acp after this install so everyone else is logged out.
Then the grabbing can begin. What do you think?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Fredisland
Users
Users
Status: Offline
User theme: Dark
Posts: 7
Joined: May 10th, '23, 18:26
    Windows 10 Firefox

Re: Screen resolution in viewtopic

Post by Fredisland »

martin wrote: May 19th, '23, 23:35 You need to log out then back in so it can grab data.
Logged out. Sessions purged. Cache purged. All cookies destroyed.
... But no Screen Resolution on Firefox and Chrome, whether with an administrator account or as a simple user 😭,
And I have noticed than no new cookie is created and nothing in the database is created.
Am i cursed? Or maybe an extension is blocking this one?
-----------------------
Reedit : I've deleted it, no more time for that.
Last edited by Fredisland on May 20th, '23, 16:35, edited 1 time in total.