{"id":3431,"date":"2014-03-24T19:50:09","date_gmt":"2014-03-24T19:50:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/24\/phpzend-frameworkmagentorelated-issues-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:50:19","modified_gmt":"2022-08-30T15:50:19","slug":"phpzend-frameworkmagentorelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/24\/phpzend-frameworkmagentorelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"php,zend-framework,magentoRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fd65727a064c5e4b46c90e36ac7751e6?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3367639<br \/>\nphp codeigniter<br \/>\nSo, I am making a from select with the code below: \/\/ Controller Code $data[&#8216;message_to_options&#8217;] = array(&#8216;1&#8217; =&gt; &#8216;username 1&#8242;,&#8217;2&#8217; =&gt; &#8216;username 2&#8217;, );\/\/ View Code &lt;?php echo form_dropdown(&#8216;message_to&#8217;, $message_to_options); ?&gt;This all works great. Except the users needs to be dynamically created not hard coded. I have the following code from ion_auth for code igniter. This gets all the users in the system. Which Is what I want to do. $users = $this-&gt;ion_auth-&gt;users()-&gt;resul<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/8RcUX.jpg?s=32&amp;g=1\" \/><br \/>\nEd Cottrell<br \/>\nphp mysql database<br \/>\nHere is my database connection code, whenever i sign up in form it always says &#8220;syntax error, unexpected T_STRING in&#8221;&lt;?php\/\/Database Connection Settingsmysql_connect(&#8220;localhost&#8221;, &#8220;root&#8221;, &#8220;&#8221;);mysql_select_db(&#8220;project mix&#8221;);global $connection;$connection = @mysql_connect(&#8220;&#8221;) or die(&#8216;Connection could not be made to the SQL Server. Please report this system error at &lt;font color=&#8221;blue&#8221;&gt;info@servername.com&lt;\/font&gt;&#8217;);@mysql_select_db(project mix,$connection) or die(&#8216;Connec<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/bfc52cb788b02f41232ba14e3bc3ed46?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTimothy Carter<br \/>\nphp javascript jsp splash-screen<br \/>\nI want to know how to show a splash screen (like a gif or jpeg file) on the user screen during my script execution.Thank you for your help.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e44fdcfb1f25aea44e160db896104d22?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmikeTheLiar<br \/>\nphp try-catch composer-php<br \/>\nI am trying to install Composer (http:\/\/getcomposer.org\/download\/) on a GoDaddy-hosted Linux server but it&#8217;s not working. No matter which method I try, I eventually run up against some version of the following error:Parse error: syntax error, unexpected &#8216;{&#8216; on line 290.Line 290 refers to line 290 in this file: https:\/\/getcomposer.org\/installer which is the start of a try-catch block. And, indeed, even a simple script like:echo &#8216;&lt;?php echo &#8220;Hello World &#8220;; try {echo &#8220;Goodbye&#8221;;} catch (Except<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6a70e0db4589df727ee35666fd5e6290?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPieter<br \/>\nphp strpos<br \/>\nThis is my code:&lt;?php $url = &#8220;http:\/\/www.uhasselt.be\/collegeroosters\/2009_2010_298_5_10.html&#8221;; $headers = get_headers($url, 1); print_r($headers); $contloc = $headers[&#8220;Content-Location&#8221;]; echo &#8220;Content-Location: &#8221; . $contloc . &#8220;\\n&#8221;; $soft404test = strpos($contloc, &#8220;http:\/\/www.uhasselt.be\/404b.htm&#8221;) ? true : false; var_dump($soft404test); ?&gt;This is its output:Array ([0] =&gt; HTTP\/1.1 200 OK[Content-Length] =&gt; 2030[Content-Type] =&gt; text\/html[Content-Location] =&gt; http:\/\/www.uhasselt<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fdec787990174a98e42235a3e62435a6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGuillermo Phillips<br \/>\nphp oracle blobs<br \/>\nI am attempting to transfer a set of photos (blobs) from one table to another across databases. I&#8217;m nearly there, except for binding the photo parameter. I have the following code:$conn_db1 = oci_pconnect(&#8216;username&#8217;, &#8216;password&#8217;, &#8216;db1&#8217;); $conn_db2 = oci_pconnect(&#8216;username&#8217;, &#8216;password&#8217;, &#8216;db2&#8217;);$parse_db1_select = oci_parse($conn_db1, &#8220;SELECTREF PID,BINARY_OBJECT PHOTOGRAPH FROMBLOBS&#8221;);$parse_db2_insert = oci_parse($conn_db2, &#8220;INSERT INTOPHOTOGRAPHS(PID,PHOTOGRAPH) VALUES(:pid,:photo)&#8221;); oci_e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e8f77197253b38a41563ece20aed9483?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTianyu<br \/>\nphp c gcc llvm llvm-gcc<br \/>\nI tried to generate LLVM intermediate code by callingllvm-gcc -emit-llvm -I\/mypath\/ -c main.c -o main.oIt works perfectly without any warnings or errors if I manually type this command in the terminal. However I have built a website that can automate this process by calling exec function in PHP like below.exec(&#8220;llvm-gcc -emit-llvm -I\/mypath\/ -c main.c -o main.o&#8221;,$msg,$ret);It will still generate .o file with a warning. The warning says that Potential incompatible plugin version. GCC: 4.5.3. Expe<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/64839d31baaefafa58120e1a5a503d66?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJohn Conde<br \/>\njavascript php jquery ajax<br \/>\nI&#8217;m simply trying to read in a field from a text box, pass the value via ajax to PHP and then store the data in a mysql table. The table is already set up and ready to go, all I need is to insert values. Here is my js file var address = $(&#8220;input#email&#8221;).val(); \/\/If submission is valid if(submitForm == &#8220;true&#8221;){$.ajax({ url: &#8220;bin\/process.php&#8221;, type: &#8220;POST&#8221;, data: {email: address}, success: function(response) { $(&#8216;#message&#8217;).html(response); }}); return false; }And then my PHP looks like this<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/70c0aec7984923f29a87ae70dd58b8ea?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2718671<br \/>\nphp wordpress<br \/>\nIs it possible to create sub menu pages depending on the options? In my plugin option page I got an input field for titles (of the submenu pages). These titles are separated by commas. I tried following in my plugin script:function my_menu() {global $page_hook_suffix;$page_hook_suffix = add_menu_page(&#8230;); \/\/adding main menu$titles=get_option(&#8216;my_option_name&#8217;);$titles=explode(&#8220;,&#8221;,$titles);if(!empty(get_option(&#8216;my_option_name&#8217;))){foreach($titles as $title){ $slug = str_replace(&#8216; &#8216;, &#8216;_&#8217;, $titl<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1f1ef8ae17123697d90e677e52852ea2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFoolishSeth<br \/>\nphp forms html-select<br \/>\nI am trying to save what state a user select after &#8216;POST&#8217; the form action runs on the same page, but I keep getting unexpected T_IS_EQUAL, expecting &#8216;}&#8217; error. What am I missing? I have the following code:&lt;select style=&#8217;width:50px; float:left; position:relative; left:-160px; top:2px; border-radius:3px; &#8216; project=&#8217;statelist&#8217; class=&#8217;statelist&#8217; name=&#8217;statelist&#8217;&gt;$state = array( &#8216;AZ&#8217;,&#8217;AL&#8217;,&#8217;AK&#8217;,&#8217;AR&#8217;, &#8216;CA&#8217;,&#8217;CO&#8217;, &#8216;CT&#8217;,&#8217;DE&#8217;,&#8217;DC&#8217;,&#8217;FL&#8217;, &#8216;GA&#8217;, &#8216;HI&#8217;,&#8217;ID&#8217;,&#8217;IL&#8217;, &#8216;IN&#8217;,&#8217;IA&#8217;,&#8217;KS&#8217;,&#8217;KY&#8217;,&#8217;LA&#8217;,&#8217;ME&#8217;,&#8217;MT&#8217;,&#8217;NV&#8217;,&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nmysql zend-framework pdo zend-db<br \/>\nI came across what looks like an odd issue with either Zend_Db or PHP&#8217;s PDO MySQL driver, that perhaps stems from my lack of knowledge of those two.Let&#8217;s assume I have a MySQL Table with a NULLable TIME field. If I run a query like this in MySQL client:UPDATE mytable SET mytime = NULL WHERE id = 1;Everything works as expected and mytime field will hold NULL as value after this query.However, if I run the exact same query in PHP through the Zend_Db_Adapter, the mytime field is set to &#8216;0:0:0&#8217; afte<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cc60634738ece15d1de4738110c76aa8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nerenon<br \/>\nphp zend-framework<br \/>\nHey, so I&#8217;m coding a php application, and I&#8217;ve run into an error, which I am for some reason not seeing (me being really bad at coding and lack of sleep may have something to do with it.Anyway, here&#8217;s my tricky problem :)Parse error: syntax error, unexpected $end, expecting T_FUNCTIONand the code:The modelclass Model_DbTable_Users extends Zend_Db_Table_Abstract {protected $_name = &#8216;users&#8217;;public function addUser($username, $password, $email){$data = array( &#8216;username&#8217; =&gt; $username,&#8217;password&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/df88bd9f17191c6a0320d8ec581a60c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nWhitewall<br \/>\nphp jquery zend-framework popup<br \/>\nI am working on zend framework, PHP and jQuery. I am working on popups sometimes. When any popup is open on the screen, we can still clicks links on webpage behind popup which causes some unexpected behaviour. How can I disable a webpage behind popup. I have seen some web application in which when popup appears then webpage behind popup become shady.I have read some tutorial about this. In each tutorial a link is used to open a dialog and an special attribute is added in anchor tag for modal. Bu<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4bbfd3e5e9f8b698abf7cd1c7aae7a10?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLazyOne<br \/>\nzend-framework .htaccess redirect error-handling<br \/>\nI developed a website using Zend Framework. In order to handle errors, I want to add to the htaccess file the following lines so I can redirect the user to the corresponding every time there is an error.ErrorDocument 500 \/errors\/500.html ErrorDocument 404 \/errors\/404.html ErrorDocument 403 \/errors\/403.htmlso my htaccess file now in the \/public folder looks like this:RewriteEngine on # Rewrite rules for Zend FrameworkRewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php# Security: Don&#8217;t al<\/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 zend-framework session destructor zend-session<br \/>\nI&#8217;m noticing some slightly unexpected behaviour using __destruct to write data using Zend_Session_Namespace in PHP 5.3:public function __destruct(){$this-&gt;getSession()-&gt;data = $this-&gt;data; } \/\/ &#8230;. private function getSession() {if (! self::$zendSession) {\/\/ this next line is fine because the object is a singletonself::$zendSession = new Zend_Session_Namespace(self::SESSION_NAMESPACE);}return(self::$zendSession); }The destructor is getting called, but the data isn&#8217;t getting written. H<\/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 zend-framework zend-controller-router<br \/>\nI&#8217;m trying to make a Router that can respond to this structure:module\/controller\/action\/id and module\/controller\/action\/pageThe only difference is is &#8216;id&#8217; or &#8216;page&#8217;. I&#8217;m using this code:$routeAdmin = new Zend_Controller_Router_Route(&#8216;administrador\/:controller\/:action\/:id\/:pg&#8217;,array(&#8216;module&#8217; =&gt; &#8216;administrador&#8217;,&#8217;controller&#8217; =&gt; &#8216;index&#8217;,&#8217;action&#8217; =&gt; &#8216;index&#8217;,&#8217;id&#8217; =&gt; 0,&#8217;pg&#8217; =&gt; 1),array(&#8216;id&#8217; =&gt; &#8216;\\d+&#8217;,&#8217;pg&#8217; =&gt; &#8216;\\d+&#8217;) ); $router-&gt;addRoute(&#8216;administrador&#8217;, $routeAdmin);The problem is<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d6abe04e0ee6cef6a51075cc2a051696?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nemkay<br \/>\nphp codeigniter zend-framework amazon internal-server-error<br \/>\nI am having a really frustrating problem with my Zend Service Amazon package integrated into my codeigniter framework. The library works perfectly fine in my localhost but when I try it from the live site it doesn&#8217;t work, it gives me an internal server error. Why could this be?The error in the PHP log is:[22-Nov-2012 21:29:02] PHP Warning: Unexpected character in input: &#8216;\\&#8217; (ASCII=92) state=1 in \/home5\/tradejun\/public_html\/application\/controllers\/dev.php on line 30[22-Nov-2012 21:29:02] PHP Pa<\/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\/dbc5c373d6e97a6c585dc74375e1f50c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTanvir<br \/>\nzend-framework<br \/>\nI wonder if anyone of you ever have had problem reading ZendFramework-1.12.3-apidoc.The index page doesnt allow moving the left slider, everything is so stiff n fixed.I cant see the full class name of the classes in left frame.I changed to Chrome\/Opera from Firefox but to no avail. There is also no search option in the api docI also want to know how I can get netbeans code auto completion to find the doc api.Auto completion works but API doc is not found in hints popup.Is there any other version<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/12dce0ad2e8d6cc5efdabab0e25b5844?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoeyD473<br \/>\nphp mysql zend-framework pdo zend-db<br \/>\nI am using Zend Framework and am trying to connect to a database by it&#8217;s IP address.. I keep getting the following errorFatal error: Uncaught exception &#8216;Zend_Config_Exception&#8217; with message&#8217;syntax error, unexpected &#8216;=&#8217; inC:\\xampp\\htdocs\\App\\application\/configs\/application.ini on line27 &#8216; in C:\\xampp\\php\\zf\\library\\Zend\\Config\\Ini.php:182 (I removed thefull stack trace)I traced the error to the application.iniresources.db.adapter = PDO_MYSQL resources.db.params.host = 192.168.1.34 resources.db.pa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c55271ea774e0adcdfa8eb9a4c54ae0f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBartosz G\u00f3rski<br \/>\nphp magento authentication apache2 magento-1.6<br \/>\nI&#8217;ve set up a new server for my magentocommerce.Unfortunatly when I moved the domain to the new location (tests have been done using another domain) a weird issue started happening: when the login page displays on the frontend, or the backend and I (and customers, of course) do submit the right credentials the page refresh, the cookie gets set but the form is displayed again. It&#8217;s such a cache being served instead of the right content (catalog).The only solution actually is delete the cache on t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dcf7bdb110140eff72be6bf50087b3db?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDrew Hunter<br \/>\najax magento magento-1.4<br \/>\nI&#8217;m writing a Magento Admin extension that has some ajax callbacks in it. Up until now I&#8217;ve been echoing the json I&#8217;m feeding back through the ajax call with a simple echo statement in the controller. It &#8220;works&#8221; but I get a bunch of errors like this in my log file: 2010-12-14T15:37:05+00:00 DEBUG (7): HEADERS ALREADY SENT: [0] \/home\/simplifiedsafety\/www\/store\/app\/code\/core\/Mage\/Core\/Controller\/Response\/Http.php:44 [1] \/home\/simplifiedsafety\/www\/store\/lib\/Zend\/Controller\/Response\/Abstract.php:7<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fc56344a30def55b388963fcc3091c01?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nrxt<br \/>\nphp magento magento-1.4<br \/>\nI have a local magento installation to test out new extensions and configurations. Now I try to open the Connect Manager locally, but get a blank screen, and the following errors:PHP Warning: Unexpected character in input: &#8216;\\x16&#8217; (ASCII=22) state=0 in \/var\/www-vhosts\/magento.local\/htdocs\/app\/code\/local\/Aitoc\/Aitsys\/Model\/Module\/License\/Light\/Performer\/Reader.php(36) : eval()&#8217;d code(18) : eval()&#8217;d code(1395) : eval()&#8217;d code on line 1 PHP Parse error: syntax error, unexpected T_STRING in \/var\/w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/99f6179e16dcc5e9f0f76d78a24c3e41?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarcin Orlowski<br \/>\nphp magento magmi<br \/>\nI am using the Column Mapper to map columns from my source file to the respective system columns.I get an error when the source column header has a &#8220;(&#8221; or &#8220;)&#8221; in there. The error occurs within the magmi UI. Here is an example:Mapped columns list: Name,Syle#,Width (inches) New name for col Name: name New name for col Style#: sku New name for col Width (inches): widthUpon saving the profile, I get the following error:**Warning:** syntax error, unexpected &#8216;(&#8216; in ColumnMappingItemProcessor.conf on<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6ee2de1b8943185f473c7dbd6fbd8e4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nviakondratiuk<br \/>\nbash magento automation<br \/>\nI am interested in automation of Magento installation. I found one nice article with steps, how to achieve this. I downloaded their script and run it from cli:.\/mage-install.sh localhost root test &#8220;abcABC123&#8221; &#8220;1.7.0.2&#8221;And get such error:.\/mage-install.sh: 21: .\/mage-install.sh: Syntax error: &#8220;(&#8221; unexpected (expecting &#8220;}&#8221;)I am not familiar with bash, here is a part of code, which is responsible for it:compareVersions () {typeset IFS=&#8217;.&#8217;typeset -a v1=( $1 )typeset -a v2=( $2 )typeset n difff<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/40de750233b3ce8268f235ba0b6a489b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nteresko<br \/>\nphp magento<br \/>\nDoes anyone know how I can get a list of products belonging to a specific category from within a view file in Magento?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0ec0f5be7749c8cc8ccda4a809103f36?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsvick<br \/>\nc# .net soap magento wsdl<br \/>\nBefore today my Magento soap worked fine, i could do a logon and a session string would be returned. I have tried the same thing today and it did not work. version 1.4.2.0I have tried to connect to 2 different Domains, with each set up with magento and i get the same error. Can anyone tell me why that would be?this is the error i am getting. {&#8220;Possible SOAP version mismatch: Envelope namespace http:\/\/schemas.xmlsoap.org\/wsdl\/ was unexpected. Expecting http:\/\/schemas.xmlsoap.org\/soap\/envelope\/.&#8221;}<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/27f9404f6a6f71cfc6f1acd57c418500?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3179784<br \/>\nphp jquery html css magento<br \/>\nI am trying to put a jquery dropdown for &#8220;My Account&#8221; in the header after you login (try username test and password test@123) but I keep getting this error:Uncaught TypeError: Cannot call method &#8216;dropit&#8217; of nullI even moved:&lt;script type=&#8221;text\/javascript&#8221;&gt;jQuery.noConflict();jQuery(document).ready(function () { $(&#8216;#myaccountmenu&#8217;).dropit(); }); &lt;\/script&gt;to the bottom before the footer, to no avail. Any ideas?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7e7e0ca5691b3808ab96e203ce5eb25f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAbhijit Navale<br \/>\nhtml magento caching block<br \/>\nMy magento homepage contents are displayed more than one time. I expect them to appear only once per page. I tried to put this code to \\app\\code\\core\\Mage\\Catalog\\Block\\Product\\List.php file as a solution:protected function _construct(){$this-&gt;addData(array(&#8216;cache_lifetime&#8217; =&gt; 900,&#8217;cache_tags&#8217; =&gt; array(Mage_Catalog_Model_Product::CACHE_TAG),&#8217;cache_key&#8217; =&gt; $this-&gt;getCacheKey()));} public function getCacheKey(){return $this-&gt;getRequest()-&gt;getRequestUri().$<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8a1092162e472b9b496ed68d4750f66d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDiego<br \/>\nmagento block<br \/>\nI found an unexpected issue while attempting to load a block within a magento module. The block name was *Mycompany_CustomerModule_Block_CustomerModuleDashboardDataBlock* (yes, the name is very long, but I added the module name all blocks related to the module to avoid confusing a dashboard.html with the one used by Magento Core). The issue is that, if I try to load such block, with the following command:$this-&gt;getLayout()-&gt;createBlock(&#8216;customermodule\/customermoduledashboarddatablock&#8217;)Mage<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>user3367639 php codeigniter So, I am making a from select with the code below: \/\/ Controller Code $data[&#8216;message_to_options&#8217;] = array(&#8216;1&#8217; =&gt; &#8216;username 1&#8242;,&#8217;2&#8217; =&gt; &#8216;username 2&#8217;, );\/\/ View Code &lt;?php echo form_dropdown(&#8216;message_to&#8217;, $message_to_options); ?&gt;This all works great. Except the users needs to be dynamically created not hard coded. I have the following code from ion_auth [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1,8],"tags":[],"class_list":["post-3431","post","type-post","status-publish","format-standard","hentry","category-magento","category-uncategorized","category-zend-framework"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3431","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=3431"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3431\/revisions"}],"predecessor-version":[{"id":8891,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3431\/revisions\/8891"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}