Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 17:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] PServerCMS a Website for your PServer

Discussion on [Release] PServerCMS a Website for your PServer within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Closed Thread
 
Old 01/12/2018, 18:01   #271
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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

KoKsPfLaNzE is offline  
Old 01/21/2018, 09:33   #272
 
elite*gold: 0
Join Date: Jun 2008
Posts: 200
Received Thanks: 22
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?
lolixxx is offline  
Old 01/21/2018, 11:17   #273
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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
KoKsPfLaNzE is offline  
Old 01/21/2018, 11:31   #274
 
elite*gold: 0
Join Date: Jun 2008
Posts: 200
Received Thanks: 22
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
lolixxx is offline  
Old 01/21/2018, 11:47   #275
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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
KoKsPfLaNzE is offline  
Old 01/29/2018, 16:53   #276

 
TrashBag's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 319
Received Thanks: 85
{{ sidebarLoggedInWidget(user) }}

is this code right I'm trying to call logged-in player username
TrashBag is offline  
Old 01/29/2018, 19:46   #277
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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?
KoKsPfLaNzE is offline  
Old 01/30/2018, 14:53   #278

 
TrashBag's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 319
Received Thanks: 85
Quote:
Originally Posted by KoKsPfLaNzE View Post
just the username?
Yes, Sir, can I call the admin panel?
TrashBag is offline  
Old 01/30/2018, 14:54   #279
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
Quote:
Originally Posted by TrashBag View Post
Yes Sir
than you need your own view-helper
KoKsPfLaNzE is offline  
Old 01/30/2018, 22:05   #280

 
TrashBag's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 319
Received Thanks: 85
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
TrashBag is offline  
Old 01/31/2018, 12:11   #281
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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
KoKsPfLaNzE is offline  
Old 01/31/2018, 15:05   #282

 
TrashBag's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 319
Received Thanks: 85
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) }}
TrashBag is offline  
Old 01/31/2018, 15:22   #283
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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 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
KoKsPfLaNzE is offline  
Old 01/31/2018, 20:40   #284

 
TrashBag's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 319
Received Thanks: 85
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 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
TrashBag is offline  
Old 01/31/2018, 22:42   #285
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
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?
KoKsPfLaNzE is offline  
Closed Thread

Tags
php, pservercms, website, zend


Similar Threads Similar Threads
[Release]pserver website (green white grey)
11/10/2009 - CO2 PServer Guides & Releases - 14 Replies
hey all, i made this website cause simplyperfection told me to make one with more lighter colors . Ok this isn't that light but yea i tried :p. If u like it press thanks If u wanna use it press thanks Want me to edit it or to finish it for u? leave me a msg Do u need a website let me know ;) screenshot:http://a.imagehost.org/0989/index.gif
[INFO] Pre-Release Conquer PServer WEBSITE based CMS
10/18/2009 - CO2 PServer Guides & Releases - 75 Replies
hi all... RELEASED Conquer PServer web "CONQUER CMS" (based DynastyCMS (RoseOnlineCMS). WHATS FITURE ??? ADMIN CP (what can admin do it ???) : - Banned Account = 100% FINISH - UnBanned Account = 100% FINISH - Added NEWS = 100% FINISH - Make a GM = 100% FINISH - Make a PM = 100% FINISH



All times are GMT +1. The time now is 17:36.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.