[Release] PServerCMS a Website for your PServer

01/12/2018 18:01 KoKsPfLaNzE#271
Quote:
Originally Posted by TrashBag View Post
omg, I was trying to do that but without the )Character) can I ask how I can know when I have to add words like that?
you have to check the view-helper

in this case

[Only registered and activated users can see links. Click Here To Register...]
01/21/2018 09:33 lolixxx#272
atal error: Uncaught PDOException: SQLSTATE[42S02]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name 'user_role'. in C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PDOConnection.php:104 Stack trace: #0 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PDOConnection.php(104): PDO->query('SELECT t0.id AS...') #1 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Connection.php(912): Doctrine\DBAL\Driver\PDOConnection->query('SELECT t0.id AS...') #2 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\Persisters\Entity\BasicEntityPersi ster.php(904): Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS...', Array, Array) #3 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\EntityRepository.php(181): Doctrine\ORM\Persisters\Entity\BasicEntityPersiste r->loadAll(Array, NULL, NULL, NULL) #4 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\EntityRepository.php(164): Doctrine\ORM\EntityRep in C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\DBALException.php on line 179

Anyone knows the reasone?
01/21/2018 11:17 KoKsPfLaNzE#273
Quote:
Originally Posted by lolixxx View Post
atal error: Uncaught PDOException: SQLSTATE[42S02]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name 'user_role'. in C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PDOConnection.php:104 Stack trace: #0 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PDOConnection.php(104): PDO->query('SELECT t0.id AS...') #1 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Connection.php(912): Doctrine\DBAL\Driver\PDOConnection->query('SELECT t0.id AS...') #2 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\Persisters\Entity\BasicEntityPersi ster.php(904): Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS...', Array, Array) #3 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\EntityRepository.php(181): Doctrine\ORM\Persisters\Entity\BasicEntityPersiste r->loadAll(Array, NULL, NULL, NULL) #4 C:\wamp64\www\pserverCMSFull\vendor\doctrine\orm\l ib\Doctrine\ORM\EntityRepository.php(164): Doctrine\ORM\EntityRep in C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\DBALException.php on line 179

Anyone knows the reasone?

you didnt exec the db setup script, so it say invalid object user_role, that means table missing
01/21/2018 11:31 lolixxx#274
Quote:
Originally Posted by KoKsPfLaNzE View Post
you didnt exec the db setup script, so it say invalid object user_role, that means table missing
hmm i did all like in turtorial!

And i getting errors running this
php ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create --dump-sql

Error log:
Fatal error: Uncaught PDOException: could not find driver in C:\wamp64\www\pserv
erCMSFull\vendor\doctrine\dbal\lib\Doctrine\DBAL\D river\PDOConnection.php:43
Stack trace:
#0 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OConnection.php(43): PDO->__construct('sqlsrv:server=1...', 'sa', 'xxxxxx...', Array)
#1 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OSqlsrv\Connection.php(36): Doctrine\DBAL\Driver\PDOConnection->__construct('sql
srv:server=1...',sa', 'xxxxxxxxx...', Array)
#2 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OSqlsrv\Driver.php(40): Doctrine\DBAL\Driver\PDOSqlsrv\Connection->__construct('
sqlsrv:server=1...', 'sa', 'xxxxxxxxx.', Array)
#3 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Connectio
n.php(372): Doctrine\DBAL\Driver\PDOSqlsrv\Driver->connect(Array, 'sa', 'xxxxxxx', Array)
#4 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\D in C:\wamp64\www\pser
verCMSFull\vendor\zendframework\zend-servicemanager\src\ServiceManager.php on li
ne 771
01/21/2018 11:47 KoKsPfLaNzE#275
Quote:
Originally Posted by lolixxx View Post
hmm i did all like in turtorial!

And i getting errors running this
php ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create --dump-sql

Error log:
Fatal error: Uncaught PDOException: could not find driver in C:\wamp64\www\pserv
erCMSFull\vendor\doctrine\dbal\lib\Doctrine\DBAL\D river\PDOConnection.php:43
Stack trace:
#0 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OConnection.php(43): PDO->__construct('sqlsrv:server=1...', 'sa', 'xxxxxx...', Array)
#1 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OSqlsrv\Connection.php(36): Doctrine\DBAL\Driver\PDOConnection->__construct('sql
srv:server=1...',sa', 'xxxxxxxxx...', Array)
#2 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Driver\PD
OSqlsrv\Driver.php(40): Doctrine\DBAL\Driver\PDOSqlsrv\Connection->__construct('
sqlsrv:server=1...', 'sa', 'xxxxxxxxx.', Array)
#3 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\Doctrine\DBAL\Connectio
n.php(372): Doctrine\DBAL\Driver\PDOSqlsrv\Driver->connect(Array, 'sa', 'xxxxxxx', Array)
#4 C:\wamp64\www\pserverCMSFull\vendor\doctrine\dbal\ lib\D in C:\wamp64\www\pser
verCMSFull\vendor\zendframework\zend-servicemanager\src\ServiceManager.php on li
ne 771
you didnt installed the sql driver for mssql on your windows server for php

hint [Only registered and activated users can see links. Click Here To Register...]
01/29/2018 16:53 TrashBag#276
{{ sidebarLoggedInWidget(user) }}

is this code right I'm trying to call logged-in player username
01/29/2018 19:46 KoKsPfLaNzE#277
Quote:
Originally Posted by TrashBag View Post
{{ sidebarLoggedInWidget(user) }}

is this code right I'm trying to call logged-in player username

just the username?
01/30/2018 14:53 TrashBag#278
Quote:
Originally Posted by KoKsPfLaNzE View Post
just the username?
Yes, Sir, can I call the admin panel?
01/30/2018 14:54 KoKsPfLaNzE#279
Quote:
Originally Posted by TrashBag View Post
Yes Sir
than you need your own view-helper
01/30/2018 22:05 TrashBag#280
Quote:
Originally Posted by KoKsPfLaNzE View Post
than you need your own view-helper
No no please just tell me how to call username XD
01/31/2018 12:11 KoKsPfLaNzE#281
Quote:
Originally Posted by TrashBag View Post
No no please just tell me how to call username XD
you need a view-helper to get this data, like the sidebar view-helper, it do mostly what you need
01/31/2018 15:05 TrashBag#282
Quote:
Originally Posted by KoKsPfLaNzE View Post
you need a view-helper to get this data, like the sidebar view-helper, it do mostly what you need
<?= $this->escapeHtml($this->user->getUsername()) ?>
i only need to make this line work with the layout.twig

i did this but didn't work {{ sidebarLoggedInWidget(user) }}
01/31/2018 15:22 KoKsPfLaNzE#283
Quote:
Originally Posted by TrashBag View Post
<?= $this->escapeHtml($this->user->getUsername()) ?>
i only need to make this line work with the layout.twig

i did this but didn't work {{ sidebarLoggedInWidget(user) }}
PHP Code:
{{ loggedInWidgetPServerCore() }} 
that will show you the login info

if iut shows smth wrong you can edit [Only registered and activated users can see links. Click Here To Register...] alias => helper/sidebarLoggedInWidget

there is atm no view-helper to just show the username, easy way would be to create a own view-helper for that case
01/31/2018 20:40 TrashBag#284
Quote:
Originally Posted by KoKsPfLaNzE View Post
PHP Code:
{{ loggedInWidgetPServerCore() }} 
that will show you the login info

if iut shows smth wrong you can edit [Only registered and activated users can see links. Click Here To Register...] alias => helper/sidebarLoggedInWidget

there is atm no view-helper to just show the username, easy way would be to create a own view-helper for that case
ATM you are the best person I like in vsro world :*


BTW The new Verg of peservercms when u change the style you lose the logged in widget panel older verg didn't have that bug
01/31/2018 22:42 KoKsPfLaNzE#285
Quote:
Originally Posted by TrashBag View Post
ATM you are the best person I like in vsro world :*


BTW The new Verg of peservercms when u change the style you lose the logged in widget panel older verg didn't have that bug
what you mean, can you post a screen or smth?