Why my changes on template files are not showing up? - magento

I am working on Magento and trying to make some changes on one of the .phtml files. But my changes never reflect on the web site. I have tried the following things:
Clear Magento cache and delete cache storage
Open the path hint and make sure I am editing the correct file
Go to magento admin panel, System->Configuration->Design, and make sure templates, skin, layout and default folders are correct.
None of the above action worked. Is there anything else that I could do?
Thanks a lot.
Screen shot

First thing you would want to check is the cache. System > Cache Management. Disable the Layout and Blocks HTML output caches and refresh the frontend page where you've put your changes.
If cache isn't the problem there is a way to find out which template is rendered in a specific location because you may not be editing the correct file.
Go to System > Configuration, select your website from top left Current Configuration Scope, then go to Developer > Debug and set Template Path Hints to Yes.
After this, save your config and refresh the page where you want to modify the .phtml.
If you are working on a live environment make sure not everybody will be able to see the template paths by putting your IP in the Allowed IPs input from Developer Client Restrictions.
After you are finished with this re-enable the cache.

Related

Joomla cache make website's first page really late to open

I have an e-shop made with Joomla - Virtuemart.
The issue is that, at the first page, the website starts to open after 20-30seconds you hit the URL.
After discussing it with my hosting provider, they found that index.php sends for about 20s requests at the file :
httpdocs/cache/convertECB/86b44edeb1436781d050e4862dd10353-cache-convertECB-bf2c8f06ab151915cd5d7bbef20b70dd.php
Even if i manually delete it, joomla recreates the file and continue to be slow.
In global configuration cache is off.
Any idea, from what is this file coming from and how should i handle the situation?
UPDATE - CONTENT OF THE PHP FILE
<?php die("Access Denied");?>
#x#a:2:{s:6:"output";s:0:"";s:6:"result";a:32:{s:3:"EUR";s:1:"1";s:3:"USD";s:6:"1.1174";s:3:"JPY";s:6:"116.65";s:3:"BGN";s:6:"1.9558";s:3:"CZK";s:6:"27.067";s:3:"DKK";s:6:"7.4355";s:3:"GBP";s:7:"0.79033";s:3:"HUF";s:6:"315.15";s:3:"PLN";s:6:"4.4490";s:3:"RON";s:6:"4.5390";s:3:"SEK";s:6:"9.3915";s:3:"CHF";s:6:"1.0812";s:3:"NOK";s:6:"9.3798";s:3:"HRK";s:6:"7.5240";s:3:"RUB";s:7:"73.5915";s:3:"TRY";s:6:"3.2804";s:3:"AUD";s:6:"1.5212";s:3:"BRL";s:6:"3.8943";s:3:"CAD";s:6:"1.4530";s:3:"CNY";s:6:"7.3593";s:3:"HKD";s:6:"8.6715";s:3:"IDR";s:8:"14970.82";s:3:"ILS";s:6:"4.3228";s:3:"INR";s:7:"75.2010";s:3:"KRW";s:7:"1315.79";s:3:"MXN";s:7:"21.1845";s:3:"MYR";s:6:"4.5885";s:3:"NZD";s:6:"1.5899";s:3:"PHP";s:6:"51.899";s:3:"SGD";s:6:"1.5116";s:3:"THB";s:6:"39.455";s:3:"ZAR";s:7:"17.2240";}}
ECB is virtuemart currency conversion rates file. That file is downloaded 3 to 4 times daily depending on your settings. It is in cache ditetory and updated with new file names.
EDIT
You have to uninstall the module as by disabling it will still download xml conversion file. Login to administrator and then go to Control panel, Extensions - Install/Uninstall. Search and select "mod_virtuemart_currencies" now click on the uninstall button at the top.
It seems that you have more than one currency (maybe you have one product priced with another currency - once this is the case, the ECB will automatically be triggered). In any case, the fact that it's waiting 20-30 seconds means that it's timing out on something. Maybe it's trying to open a URL that has the IP of your website banned (this is very possible, and we had the exact scenario with one of our clients before).
If you can provide us with the contents of the cache file that is being called by your index.php file, maybe we can be of more help.

Need to do a reset component backened in joomla - joomla in a subdirectory (CiviCRM)

According to docs, I should run this command to reset some of my CiviCRM stuff in Joomla:
/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1
However, we only used the Joomla & CiviCRM solution for our interal-business-facing side, and it's on a subdirectory of the main site.
//
However, whenever I run
//jovicrm/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1
it goes to the main website
.
Considering the public-facing side is wordpress based and doesn't accept joomla browser commands, fortunately it just goes to the main site. My question is, what do I need to do to alter the browser address to make it reach joomla's subdirectory instead of root?
Assuming you're in a version of CiviCRM from the past couple of years, don't worry about entering the URL: it's in the menu. Go within CiviCRM to Administer > System Settings > Cleanup Caches and Update Paths.
That menu item should correspond to:
http://yoursite.org/administrator/?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1
Once you're there, you can check the paths and URL and hit Save to reset them. You can also go there to clear all the caches with the Cleanup Caches button.
Now, if you just moved the site from somewhere, there's the chance that the web server doesn't have permission to write/delete in the template cache, so you might need to go into your files and clear out:
everything within yoursiteroot/media/civicrm/templates_c (but not templates_c itself)
the file yoursiteroot/media/civicrm/ConfigAndLog/Config.IDS.ini

Checkout button in Magento not working after I upgraded from 1.6 to 1.7. - Am I missing something?

The store works when I add an item, but when I click to checkout the link re-directs to the home page store. It’s the same when I click on Proceed to checkout. Before, I had the cache management disabled and now is enabled. Is this related or what could be causing this problem? Thanks so much for the help, with kind regards.
Try deleting all the cache files stored in the /var/cache folder in magento.
Using chrome console or firebug check to see if you have any JS error before redirecting
Check your web logs to see if you have any php errors on the checkout page
It's most likely to be a Javascript issue when the checkout button does not work. Remove your theme to fall back to the base theme then see if it works.
I fixed and these where the steps I took to make it work. However, before you do any of the following work disable your cache management:
Open Magento admin panel
Go to System>Cache Management
Check all Cache types and in the Actions box select refresh
Then select all Cache types and in the Actions box select disable
Also click Flush Magento Cache and Flush Cache Storage buttons
Now you are free to perform any changes to your store.
Now, if you upgraded and nothing works make sure that under:
System/Configuration -> Web – Default Pages /that your ‘Home page’ is listed under
‘CMS Home Page’. Also check:
System/Configuration -> Design – Packages /that your ‘Template’ is listed under
‘Current Package Name’. Otherwise default takes over.
Note: your template will still come up with all its features and buttons in your browser, even if no home page is setup; this is because of the previous version configuration.
If the ‘Home Page’ and ‘Template’ are not listed, add them and go into your File System and erase everything under ‘var/cache’ and ‘var/session’. Reload your home page: www.yourstore.com/magento/ it should work. After, all work is done enable your cache management.
Also, it’s good to check that your home page lands at the store, and to check - do the following:
Login to your Magento MySQL database.
Open the db [database_prefix] for your store.
Locate core_config_data.
Find the row with entry: 'web/unsecure/base_url' and 'web/secure/base_url' they should look like www.yourstore.com/magento/ or whatever you name your magento store file.

Magento empty page in checkout/cart

Got a problem with adding products to the cart, it goes to the checkout page but the page is empty apart from the surrounding header/footer template.
Ive tried everything i can think of, its not the theme (happens on all themes), i tried diabling compiler and flushing caches etc..
No errors in the server log, i have another magento installation on the same server and that is working fine. Tried disabling all 3rd party extensions too.
Any other places i can look? Im lost!
If header/footer exists it means that script worked from start till end, but might be with some errors. Generally you should first of all try to look for all remove directives in your layout xml files(grep helps). It might be that the content area is simply removed by some xml.
In case XML way thing didn't worked, the things are getting tougher. You should check every template file which should be rendered in the content. it might be that content is somehow commented out.
The other thing to consider is, as far as I remember, the content block should have type list or output="toHtml" so it would be rendered automatically.
At the moment that's all what I might think off. Oh ya! And check that checkout module is enabled and it's output also enabled!
To check if module enabled you should open the Mage_Checkout.xml or Mage_Cart.xml and check if the both enabled at all.
After that in admin panel there is such page as Disable Modules Output where the output of the cart module might be disabled.
Very important note!
Make sure you disable all custom modules and not simply disable their output. Because in latter case you will have module working, simply with no output.
Make sure you check in configuration > advanced
Make sure you check the mage_checkout is enabled both on default but also (more importantly) at your store level (adjust global scope in the top left).
Chances are mage_checkout could just be disabled at your store level for some reason.

Can't change header logo in Magento?

I have created my own theme for magento, and I am trying to edit the logo and am having difficulty.
I have created my own local/Mage/Page/etc/config.xml file, and specified within the config the following:
<logo_src>images/Race-Ramps-logo-streaked-gradient.gif</logo_src>
I created a custom layout in the file as well. I can see the custom layout file in the CMS, but my changes to the logo do absolutely nothing. I have even tried changing the original core config.xml, it still stays the same.
On multiple websites, I have been told to go to System > Configuration > Design > Header, but I do not have the header option?
Help please!
The value you're changing (mostly likely, hard to tell without more context) in the configuration file is the default value for a the logo_src System Config variable. This is not want you want to do.
The people who've told to change the value in System -> Configuration -> Design -> Header are correct. If you don't have a header options there it's eitehr because
The person who setup your admin account didn't give you access (ask them)
You have the wrong configuration scope set (look in the upper left hand corner for the scope selector)
Someone tried to customize your Magento store and accidentally killed the header configuration
If you're desperate you could always search through your codebase for calls to getLogoSrc
base/default/template/page/html/header.phtml
default/iphone/template/page/html/header.phtml
default/modern/template/page/html/header.phtml
and replace them with a hard coded image.
Save image at the below location
/magento/skin/frontend/default/default/images/your_image_name.png
Login to the admin section
System > Configuration > General > Design > Header > Logo Image Src
-- Replace the images/logo.gif to images/your_image_name.png
Your default magneto front-end header logo will be changed to your custom logo.
I was only able to make my logo show (in Magento Community 1.9) after I placed the file in this directory: /skin/frontend/base/default/images/logo_YCZ.jpg

Resources