{"id":5660,"date":"2014-04-04T15:38:03","date_gmt":"2014-04-04T15:38:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/phpdoctrinesymfony-2-1sonata-adminrelated-issues-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:49:28","modified_gmt":"2022-08-30T15:49:28","slug":"phpdoctrinesymfony-2-1sonata-adminrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/phpdoctrinesymfony-2-1sonata-adminrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"php,doctrine,symfony-2.1,sonata-adminRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2915caaca653f93045ddc1ed5ad36294?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEugene<br \/>\nphp session memcached redundancy<br \/>\nColleagues! I&#8217;m running php 5.3 (5.3.8) with memcache (2.2.6) client library (http:\/\/pecl.php.net\/package\/memcache) to deal with memcached server. My goal is to have failover solution for sessions engine, namely:Only native php sessions support (no custom handlers) Few memcached servers in the poolWhat I expect is that in case if one of memcached servers is down, php will attempt to utilize the second server in the pool [will successfully connect it and become happy], however when first memcache<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/974fb481d985024715a6816dfbb9cebf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nR\u0103zvan Panda<br \/>\nphp postback<br \/>\nIf I pass PHP variables with &#8216;.&#8217; in their names via $_GET PHP auto-replaces them with &#8216;_&#8217; characters. For example:&lt;?php echo &#8220;url is &#8220;.$_SERVER[&#8216;REQUEST_URI&#8217;].&#8221;&lt;p&gt;&#8221;; echo &#8220;x.y is &#8220;.$_GET[&#8216;x.y&#8217;].&#8221;.&lt;p&gt;&#8221;; echo &#8220;x_y is &#8220;.$_GET[&#8216;x_y&#8217;].&#8221;.&lt;p&gt;&#8221;;&#8230; outputs the following:url is \/SpShipTool\/php\/testGetUrl.php?x.y=a.b x.y is . x_y is a.b&#8230;. my question is this: is there any way I can get this to stop ? Cannot for the life of me figure out what I&#8217;ve done to deserve this \ud83d\ude41 PHP version<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3f201d0102a2e5cfd2138ad54270ea38?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3439338<br \/>\nphp wordpress apache .htaccess mod-rewrite<br \/>\nI want to redirect domainA.com\/folder\/ which originates within an older wordpress installtion to domainB.com\/folder1\/folder2\/ which is the link to the page within my new wordpress installation wihtout the url changing. I have managed to achieve this with the .htaccess file inside domainA.com\/folder\/ which reads:RewriteEngine On RewriteCond %{REQUEST_URI} ^\/folder RewriteRule ^(.*)$ http:\/\/www.domainB.com\/folder1\/folder2\/ [P] The Rewriterule [P] (proxy) flag does what I want and redirects the pag<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6e0c82765eedf7593a062b504a26edc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatej<br \/>\nphp json odbc sqldatatypes<br \/>\nI want to return a JSON object from a database (MyTable) which contains two columns &#8211; ID (int) and Name (string).The script below produces a JSON like:[{&#8220;ID&#8221;:&#8221;0&#8243;,&#8221;Name&#8221;:&#8221;John&#8221;},{&#8220;ID&#8221;:&#8221;1&#8243;,&#8221;Name&#8221;:&#8221;Doe&#8221;}]You can see, that the ID is returned as a string. How can I accomplish it in a way that an ID would be returned as integer:[{&#8220;ID&#8221;:0,&#8221;Name&#8221;:&#8221;John&#8221;},{&#8220;ID&#8221;:1,&#8221;Name&#8221;:&#8221;Doe&#8221;}]I do not want to read and parse the result array from the ODBC since I want to use generic queries like:SELECT * FROM TableXXXHere<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9b3329c60af72a363e831e5b59de86a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJaSk<br \/>\nphp doctrine symfony-1.4<br \/>\nWhile following the symfony tutorial (1.4.4) I&#8217;m getting an error with ODBC\/mssql 2008.SQLSTATE[07002]: COUNT field incorrect: 0 [Microsoft][SQL Server Native Client 10.0]COUNT field incorrect or syntax error (SQLExecute[0] at ext\\pdo_odbc\\odbc_stmt.c:254). Failing Query: &#8220;SELECT [j].[id] AS [j__id], [j].[category_id] AS [j__category_id], [j].[type] AS [j_type], [j].[company] AS [j_company], [j].[logo] AS [j_logo], [j].[url] AS [j_url], [j].[position] AS [j_position], [j].[location] AS [j_locati<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9f3b453c3d327a3843bfcff9ea7c66e5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nlogan<br \/>\nphp phpexcel<br \/>\nI am using PHPExcel (found here: https:\/\/github.com\/PHPOffice\/PHPExcel). If i try to read more than approximately 2000 rows then it shows memory error as follows.Fatal error: Allowed memory size of 134217728 bytes exhausted (triedto allocate 71 bytes) in\/home\/sample\/PHPExcelReader\/Classes\/PHPExcel\/worksheet.php on line 89My Excel data range is A1:X2000Below is my code used to read the excel.ini_set(&#8216;memory_limit&#8217;, &#8216;-1&#8217;); \/** Include path **\/set_include_path(get_include_path() . PATH_SEPARATOR .<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/45a82a5ee8c84e31bf22f2ab6b1653f8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nShawn<br \/>\nphp exception doctrine2<br \/>\nThis is the relevant code:throw new Exception(&#8220;Message&#8221;);And this is the error message I get:Fatal error: require() [function.require]: Failed opening required&#8217;C:\\wamp\\www\\drupal-7.15\\sites\\all\\modules\\dbManip\\Entities\\Exception.php'(include_path=&#8217;.;C:\\wamp\\bin\\php\\php5.3.13\\pear\\&#8217;) inC:\\wamp\\bin\\php\\php5.3.13\\pear\\Doctrine\\Common\\ClassLoader.php on line163I believe Doctrine is trying to load the Exception class definition as if it were just another entity of mine, but as far as I know, Exceptio<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/ikamD.png?s=32&amp;g=1\" \/><br \/>\nl008com<br \/>\nphp ping icmp<br \/>\nI&#8217;m trying to do actual, genuine ping using ICMP packets, natively in PHP. Right now I&#8217;m using exec to run the ping command, but you never quite know what it&#8217;s going to output, which makes it very hard to format the results for web. Different network setups can result in some crazy output. So I wrote my own pinger using socket_create() (with help from the manual comments), but that also doesn&#8217;t work. Apparently you can&#8217;t create a raw socket unless your apache server is running as root. That&#8217;s no<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bab518e41e9206804fa0cbb2b014aebd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPhil Cross<br \/>\nphp linux apache ownership<br \/>\nI currently manage 8 different sites for my organisation and built a central management website to help manage the content on them all. I currently have a file uploader on the administration website that allows me to upload ZIP files to the server. This script then unzips the package, and moves the files to different parts of the server. The problem is, when I upload files through the browser, it assigns ownership to apache (for both user and group). This causes me a problem when I try to overwr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/142dbbce38e59d6b5e452ca6fcf725ef?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndrew<br \/>\nphp mysql date strtotime<br \/>\nIn my vaguely large app, I get dates from the MySQL database all the time, and until today, where and when I formatted them with PHP&#8217;s date() command was random. I wanted to tidy that up today and move it all entirely to the view, rather than the retrieval. But I ran into some problems. My method so far has been, when getting a date from the database, I pass it to the rest of the app after running strtotime() on it, so that the date() functions have something they can work with. So, question the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9b3329c60af72a363e831e5b59de86a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJaSk<br \/>\nphp doctrine symfony-1.4<br \/>\nWhile following the symfony tutorial (1.4.4) I&#8217;m getting an error with ODBC\/mssql 2008.SQLSTATE[07002]: COUNT field incorrect: 0 [Microsoft][SQL Server Native Client 10.0]COUNT field incorrect or syntax error (SQLExecute[0] at ext\\pdo_odbc\\odbc_stmt.c:254). Failing Query: &#8220;SELECT [j].[id] AS [j__id], [j].[category_id] AS [j__category_id], [j].[type] AS [j_type], [j].[company] AS [j_company], [j].[logo] AS [j_logo], [j].[url] AS [j_url], [j].[position] AS [j_position], [j].[location] AS [j_locati<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a7d2eb56fe7d431c9def61af0a72bd80?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBroncha<br \/>\nphp sql-server-2008 datetime doctrine doctrine2<br \/>\nI&#8217;m using Doctrine 2.2 with php 5.3 on an apache server.So far I&#8217;ve stumbled upon the following problem: When I try to update a datetime column I get: SQLSTATE[22007]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and\/or time from character string.I&#8217;ve even gone so far to make a get onto the column and then use that with only 1 day added to it to set the new date&#8230;&#8230;same result.When I instead change both the column in the database and in the entit<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9966637ec8ca4fc84d65218abf0fb7b0?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nownking<br \/>\nsymfony1 doctrine odbc sql-azure<br \/>\nMy DSN String looks like this:dsn: odbc:DRIVER={SQL Server};Server=myserver.database.windows.net;Database=mydb;username: myusername@myserverpassword: mypwdWhen I run the symfony task:symfony doctrine:build-schemaIt seems be a successfull connection, but it breaks with the following error:SQLSTATE[42000]: Syntax error or access violation: 2812 [Microsoft][SQL Server Native Client 10.0][SQL Server]Could not find stored procedure &#8216;sp_primary_keys_rowset&#8217;. (SQLExecute[2812] at ext\\pdo_odbc\\odb<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4190f05bc2af559580aa220d0139e9f8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ngbn<br \/>\nphp sql-server-2005 datetime doctrine<br \/>\nI am using Doctrine 2.0 with php5.3 , being served from apache2 with a MSSQL\\SQLEXPRESS 2005 backend.My problem is that when I go to insert a record with a DateTime object, I get the error.PDOException: SQLSTATE[22007]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting datetime from character string.As part of troubleshooting, I have verified that the target column is in fact of the type datetime. And I have echoed the query using the EchoLogger which return<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/15e7a6e4a98126f1d11435ba77112214?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEric B.<br \/>\nxml eclipse validation xsd doctrine<br \/>\nI&#8217;ve got a PHP project in Eclipse with a lot of XML files. Right now, all my XML files are failing validation, with the following error message:White spaces are required between publicId and systemIdI&#8217;ve searched around, and publicId and systemId seem to be related to XML files that start with DOCTYPE. Mine don&#8217;t. Another SO posting indicated to add the XSD to the XML catalog in Eclipse, but that doesn&#8217;t seem to make a difference.One sample XML is the following:&lt;?xml version=&#8221;1.0&#8243; encoding<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/52047dffb357782a872cca9125af33d4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nkamil<br \/>\nsql doctrine2 doctrine<br \/>\nI&#8217;m trying to do native SQL in Doctrine. Basically I have 2 parameters:CANDIDATE_ID &#8211; user for who we delete entries, list of FILE_ID to keepSo I make $this-&gt;getEntityManager()-&gt;getConnection()-&gt;executeUpdate( &#8220;DELETE FROM FILE WHERE CANDIDATE_ID = :ID AND NOT ID IN :KEEPID&#8221;,array(&#8220;ID&#8221; =&gt; $candidate-&gt;id,&#8221;KEEPID&#8221; =&gt; array(2) ));But Doctrine fails:Notice: Array to string conversion in D:\\xampp\\htdocs\\azk\\vendor\\doctrine\\dbal\\lib\\Doctrine\\DBAL\\Connection.php on line 786Is this bug<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a7e904a0b242c8e4194abff1724ee212?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nClement Herreman<br \/>\nphp symfony1 doctrine persistence many-to-many<br \/>\nToday I met some unexpected behavior on doctrine (1.2). SituationI&#8217;ve a Document class, and an Anomaly class. A Document can have many Anomalies, and an Anomaly can be found on many Documents.#schema.ymlDocument:columns:id: { type: integer(12), primary: true, autoincrement: true }scan_id: { type: integer(10), notnull: true }name: { type: string(100), notnull: true }Anomaly:columns:id: { type: integer(5), primary: true, autoincrement: true }label: { type: string(200) }value: { ty<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/816f969b7331813049b512a5bdfbac5b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1987373<br \/>\nsql symfony2 doctrine doctrine2 dql<br \/>\nI have a Repository Class with a method to call a custom Query. When I try to call findAllWithRating() from inside a controller I got the following exception:[2\/2] QueryException: [Syntax Error] line 0, col 156: Error: Unexpected &#8216;NULL&#8217;If I try to call the query within phpmyadmin the query works great! Any Idea?&lt;?php namespace Anchorbrands\\Bundle\\MessageBundle\\Entity;use Doctrine\\ORM\\EntityRepository;class MessageRepository extends EntityRepository {public function findAllWithRating() {return<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b95339c4c4209cb72d4f246ee5480dd6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nk314<br \/>\nzend-framework doctrine<br \/>\nI got problem with Doctrine. I add this lines in my application.ini:includePaths.model = APPLICATION_PATH &#8220;\/models&#8221;autoloaderNamespaces[] = &#8220;Doctrine&#8221;doctrine.dns = &#8220;mysql:\/\/root@localhost\/translators&#8221; dectrine.data_fixtures_path = APPLICATION_PATH &#8220;\/doctrine\/data\/fixtures&#8221; doctrine.models_path = APPLICATION_PATH &#8220;\/models&#8221; doctrine.migrations_path = APPLICATION_PATH &#8220;\/doctrine\/migrations&#8221; doctrine.sql_path = APPLICATION_PATH &#8220;\/doctrine\/data\/sql&#8221; doctrine.yaml_schema_path = &#8220;APPLICATION_PATH &#8220;\/do<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/592987f474ee562a63b8391e2e2b3c18?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nborrible<br \/>\nphp doctrine<br \/>\nI am seeing an unexpected caching effect in Doctrine (1.2.4).I have a couple of related tables defined by the following YAML (several additional fields not used in the example removed). Just a simple 1-Many relationship from students to schools.School:tableName: tblschoolcolumns:sch_id:name: sch_id as idprimary: trueautoincrement: truetype: integer(4)sch_name:name: sch_name as nametype: string(50) Student:tableName: tblstudentcolumns:stu_id:name: stu_id as idprimary: trueautoincrement: truetype<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c5c848af216f29210a5c4c0b3e1a6639?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJohannes Klau\u00df<br \/>\nless symfony-2.1 assetic lessphp<br \/>\nI want to compile a LESS file with parameters fetched from the database.So something like this:$color = &#8220;#433332&#8221;;And then in .less@baseColor: $color;Of course this is just pseudocode, so give you an idea what I want to do.I am using Assetic, Symfony 2.1.8-DEV and the leafo\/lessphp bundle.I have no idea how I could achieve this. Is it even possible?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/aee3b44e5f0b4dfa0e2da672897b3751?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj0k<br \/>\nsymfony2 symfony-2.1 openshift<br \/>\nI&#8217;ve deployed my Symfony 2.1 application on openshift and it doesn&#8217;t work.Calling app.php server return 200 OK and a white page (in my local server work well).Log:=&gt; php-5.3\/logs\/error_log-20130306-000000-EST &lt;== [Tue Mar 05 19:16:00 2013] [error] [client 127.5.146.1] PHP 3. require_once()\/var\/lib\/openshift\/5e487f6c4a484700999d9213755b64eb\/app-root\/runtime\/repo\/php\/app\/bootstrap.php.cache:4[Tue Mar 05 19:16:00 2013] [error] [client 127.5.146.1] PHP 4.require()\/var\/lib\/openshift\/5e487f6c4a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7423b60386ef9e3932b2213ebe3161e1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichi<br \/>\nphp symfony2 symfony-2.1 assetic capifony<br \/>\nI&#8217;m stepping into deploying my Symfony app using Capifony. When Capifony executes assetic:dump I get a runtime Exception.[RuntimeException]Unable to write file{path}\/releases\/20130314071536\/app\/..\/web\/js\/.I tried executing the command manually and get the same Exception. Then I tried the command using the &#8211;verbose parameter and realized that all files with a source path that has a dot in it where written without the file name, only the extension. The Exception comes up when hitting a file name<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ad18c62efb8083bf095d775c3fad9d4c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1041880<br \/>\nbundle symfony-2.1<br \/>\nI am using Symfony 2.1 and I want to add a new bundle. The bundle is called pulse00\/ffmpeg-bundle this bundle is added to composer.json as any other bundle: in require array is added line &#8220;pulse00\/ffmpeg-bundle&#8221;: &#8220;dev-master&#8221;After running php composer.phar update process ended with success. After that was bundle registered in appkernel.php.The problem begins with registering this bundle as service. In readme of this bundle is written: dubture_f_fmpeg:binary: \/usr\/bin\/ffmpegBut Symfony crashes wi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4d8e734624921b817ab96d9167a5bfd3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser172409255<br \/>\nphp doctrine2 symfony-2.1<br \/>\nI have around 40 entities and many bidirectional relationships. Whenever i use var_dump($user) or any entity my browser gets loaded with too much data of arrays and variables then it just crashed.i want to whats the problem.The data is being inserted fine. Can i cause issue in production.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6116ac3c4b5835c6745570ea73a85c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCharles<br \/>\nphp doctrine symfony-2.1 sonata-admin<br \/>\nI have been trying to setup Sonata Admin with Symfony-CMF for my project, and i have some errors when i trying to add menu item. How to fix this?Error:The class &#8216;Symfony\\Cmf\\Bundle\\MenuBundle\\Document\\MenuItem&#8217; was not found in the chain configured namespaces Doctrine\\ODM\\PHPCR\\DocumentLogs:DEBUG &#8211; Notified event &#8220;kernel.request&#8221; to listener &#8220;Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest&#8221;. DEBUG &#8211; Notified event &#8220;kernel.request&#8221; to listener &#8220;Symfony\\Bundle\\Framewo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/515f68307e6e562d077b62c8b8f4f24a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDaveFX<br \/>\nphp symfony2 doctrine2 symfony-2.1<br \/>\nI&#8217;m developing a bit complex Symfony2.1 based app, with connection to two different databases (with two entity managers, one connected to Oracle and the other one to PostgreSQL) and a custom User class (with a custom password encoder).I&#8217;ve managed to have it running correctly in dev environment, but whenever I try to run it in production environment I&#8217;m getting the next error:Doctrine\\Common\\Persistence\\Mapping\\MappingException: The class &#8216;MyFirm\\UserManagerBundle\\Entity\\User&#8217; was not found in t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fa38c3a267295fb2978ded32786073d2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ntolgap<br \/>\nsymfony2 doctrine doctrine2 symfony-2.1 jmsserializerbundle<br \/>\nI&#8217;m having this issue with JMSSerializerBundle. It basically gives me an exception for something that I&#8217;ve already done. This is my entity:Edited to avoid confusion about annotation lines&lt;?phpnamespace My\\ProjectBundle\\Entity; use JMS\\SerializerBundle\\Annotation\\Type;use Doctrine\\ORM\\Mapping as ORM;\/*** My\\ProjectBundle\\Entity\\Music* * @ORM\\Table()* @ORM\\Entity(repositoryClass=&#8221;My\\ProjectBundle\\Entity\\MusicRepository&#8221;)*\/ class Music extends Post { \/*** @var integer $id* * @ORM\\Column(name=&#8221;id<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/aee3b44e5f0b4dfa0e2da672897b3751?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nj0k<br \/>\ntwig symfony-2.1<br \/>\nI have setup custom error pages to display for certain HTTP errors in the folder:app\/Resources\/TwigBundle\/views\/Exception\/The 403 page (error403.html.twig) works and displays as expected.The 500 page (error500.html.twig) works and displays as expected.The 404 page (error404.html.twig) throws a 500 server error:PHP Fatal error: Uncaught exception &#8216;Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException&#8217;The error is being thrown by doing an auth check to display certain menu items for users<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/pjEYF.jpg?s=32&amp;g=1\" \/><br \/>\nicksde<br \/>\nphp symfony2 symfony-2.1 apc xcache<br \/>\nBecause a Bug in APC, i had to use another Cache-Drive. I removed APC and installed xcache. config.php says Your configuration looks good to run Symfony.I got the following error on request:PHP Fatal error: Uncaught exception &#8216;RuntimeException&#8217; with message &#8216;Unable to use ApcClassLoader as APC is not enabled.&#8217; in \/var\/&#8230;\/app\/bootstrap.php.cache:1039 Stack trace: #0 \/var\/&#8230;\/web\/app.php(11): Symfony\\\\Component\\\\ClassLoader\\\\ApcClassLoader-&gt;__construct(&#8216;sf2&#8217;, Object(Composer\\\\Autoload\\\\ClassL<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bb79b3c75aae4ce3ed54b291b77ad1cb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1150508<br \/>\nsymfony2 sonata-admin symfony-sonata<br \/>\nI have opened an issue here for my problem. The problem is basically that I can not show embed arrays or collections when listing, editing or adding user. When using SonataDoctrineORMAdminBundle there is no such problem. I could not find a good documentation to install SonataDoctrineMongoDBAdminBundle. How can I install SonataDoctrineMongoDBAdminBundle and use it without any crash?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6116ac3c4b5835c6745570ea73a85c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCharles<br \/>\nphp doctrine symfony-2.1 sonata-admin<br \/>\nI have been trying to setup Sonata Admin with Symfony-CMF for my project, and i have some errors when i trying to add menu item. How to fix this?Error:The class &#8216;Symfony\\Cmf\\Bundle\\MenuBundle\\Document\\MenuItem&#8217; was not found in the chain configured namespaces Doctrine\\ODM\\PHPCR\\DocumentLogs:DEBUG &#8211; Notified event &#8220;kernel.request&#8221; to listener &#8220;Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelRequest&#8221;. DEBUG &#8211; Notified event &#8220;kernel.request&#8221; to listener &#8220;Symfony\\Bundle\\Framewo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/bLYjW.jpg?s=32&amp;g=1\" \/><br \/>\nlikeitlikeit<br \/>\nsymfony2 routing fosuserbundle symfony-sonata sonata-admin<br \/>\nI&#8217;ve followed the official doc to install the FOS User bundle for symfony 2, but at the very end, when I need to specify the routes :# app\/config\/routing.yml fos_user_security:resource: &#8220;@FOSUserBundle\/Resources\/config\/routing\/security.xml&#8221;fos_user_profile:resource: &#8220;@FOSUserBundle\/Resources\/config\/routing\/profile.xml&#8221;prefix: \/profilefos_user_register:resource: &#8220;@FOSUserBundle\/Resources\/config\/routing\/registration.xml&#8221;prefix: \/registerfos_user_resetting:resource: &#8220;@FOSUserBundle\/Resources\/config<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a188d4bc26119b3994e1b8922362dc26?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRobMasters<br \/>\nphp symfony2 sonata-admin<br \/>\nI&#8217;m hoping somebody will be able to shed some light on this problem &#8211; unfortunately I&#8217;m not able to provide too much to work from as I don&#8217;t know what&#8217;s going wrong.Basically, when I&#8217;m uploading JPEG images that are only about 300kb in size the page will hang and say something like &#8220;uploading 11%&#8221; in the status bar. Shortly afterwards, I&#8217;ll get the following CRITICAL error appearing in my logs:[2013-01-28 10:15:50] request.CRITICAL: Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundExc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1aaafb1f68ad0d59332b6f92c29f6929?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nstefun<br \/>\nvalidation symfony2 fosuserbundle sonata-admin<br \/>\nI&#8217;m implementing an application which needs CRUD functionality using SonataAdminBundle+SonatUserBundle+FOSUserbundle. Integration of bundle done successfully and login thing works fine. I manage to get change password form and resetting password form from FOSUserBundle. Now while submitting any of these form I&#8217;ll get error likeFatal error: Call to undefined method Symfony\\Component\\Validator\\ExecutionContext::setCurrentProperty() in \/vendor\/symfony\/src\/Symfony\/Component\/Form\/Extension\/Validator\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/1592808864\/picture?type=large\" \/><br \/>\ndeepak<br \/>\nphp doctrine2 symfony-2.1 sonata-admin<br \/>\nI just upgraded my symfony2.1.6 to Symfony2.1.7 and bumped in to this issue. Please let me know I can provide more details. It was fine with 2.1.6 but does not seem to work in 2.1.7.This error comes when I try to access Customer.php Entity (customer listing)Notice: Undefined index: _per_page in \/var\/www\/playground\/vendor\/sonata-project\/admin-bundle\/Sonata\/AdminBundle\/Admin\/Admin.php line 720<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ec7f6c190bea501e47a04de172023b96?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\npuntotuning<br \/>\nsymfony-2.1 fosuserbundle sonata-admin knpmenubundle<br \/>\nI&#8217;m following this tutorial http:\/\/tech.dupeu.pl\/2012\/10\/getting-started-with-symfony-2-1-fosuserbundle-sonatauserbundle-and-sonataadminbundle\/#respond to install the sonata admin bundle for symfony2.1(i&#8217;m currently using symfony2.1.7). Everything is working perfectly but when i click on the &#8220;List&#8221; button once logged in, i get a fatal error: Fatal error: Call to undefined method Knp\\Menu\\MenuItem::setCurrentUri() in \/Users\/salvatore\/Documents\/workspace\/mysite\/vendor\/sonata-project\/admin-bundle\/S<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eugene php session memcached redundancy Colleagues! I&#8217;m running php 5.3 (5.3.8) with memcache (2.2.6) client library (http:\/\/pecl.php.net\/package\/memcache) to deal with memcached server. My goal is to have failover solution for sessions engine, namely:Only native php sessions support (no custom handlers) Few memcached servers in the poolWhat I expect is that in case if one of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1,8],"tags":[],"class_list":["post-5660","post","type-post","status-publish","format-standard","hentry","category-php-memcached","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5660"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5660\/revisions"}],"predecessor-version":[{"id":8947,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5660\/revisions\/8947"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}