I'm trying to display the main menu from other context using Wayfinder. I have the following call:
[[!Wayfinder#MainMenu? &startId=`0` &contexts=`web` &scheme=`full`]]
The problem is that the first time the page is visited, no menu is displayed. After a refresh it shows up. This happens from time to time.
I'm guessing it's some kind of cache problem but I can't figure out why it doesn't show the first time round.
Setting cacheResults to true or false doesn't seem to affect the issue.
Any help?
Thanks
This answer might come in late but you should try manually deleting the contents of core > cache via ftp or ssh. That usually does the trick when I have issues like that.
Related
I was making some changes on the header.php file of my wordpress site, related to the flag icons displayed on the top of the webpage.
After that, I loaded back the page and suddenly it all appeared messed. I undoed all the changes I've previosly done, saved and I don't know why but the page is still messed.
Just so you can see how it should be and how it's actually looking like.
I'm sort of desperate because of it, so any clue in what could be causing this is gonna be extremely helpful.
Thanks!
Sometimes with wordpress it needs a bit of time until it's changing. Also try pressing F5 to force refresh, or clear your cache.
Also, you might forgot to add some styles or other file.
I'm working on a project that is built on Joomla 1.5. I've been trying to set the title of the pages for different views and everything works fine except for that title of the document is set to as the project name once the document is loaded completely. However, I can clearly see the title set by me as the document title while it is loading. Also, when I checked in firebug, I found that some script is overwriting document title over and over again on a span of 2 sec. I checked almost all the settings pages to disable this but couldn't find any such option; I'm not a Joomla expert. Also, I don't want to delete that script manually, so if someone has any idea about how to fix it, I'd really appreciate it.
PS: I searched for solution before posting this so please, no -1.
So apparently, there was a script in a file chat.js on our server that was updating the page title every 2 seconds. So lame that I didn't realize it could be such a minor mistake. I wasn't able to find it as it was being included only in some views. Anyways, sorry for wasting your times. If anyone of you've faced a similar issue, please do check your script in Javascript debugger.
I'm using Magento to build our EC site.
And I found our product page is not refreshing when I enable "Full Page Cache".
For example, I do this in the first line:
echo time();
but it always shows the same timestamp no matter how many time I refresh the browser.
(And I already disable the cache function in my browser)
But the funny thing is when I append any parameter to my url,
for example
mysite/?a=0
The timestamp is updated accordingly.
Is this the expected scenario with Magento framework?
Or did I just get something wrong?
Thanks.
That's right!
You need to develop a store without cache function.
At the end you can turn it on. This cache is intended to user
I have a pretty strage problem im dealing with.
Lost sessionvariables in firefox.
Im using wordpress and have a subpage that causes the loss.
More specific:
In wordpress there exists a page called My pages (Original page names are in swedish, translated for convinience)
Under this page i have a few subpages. Among these are a page called Create test. There is nothing special about this page, for now only contains the phrase "hello world". If I enter any page other that this, it works.
But this particular page just seems to clear my session variables (wich I use to store login info)
I tried deleting the page in question in the effort to remake it.
While it was deleted I tried navigating around on the page.
Create test was the last item in the subnavigation menu, and now when its gone, the same thing happens on the last menuitem (now Account settings). This leave me to believe its something with the menu.
Even more strange, after recreating Create test, so that this page is now the last item. Still it's Account settings that is the page with the resetting of sessionvars...
I have through echo determined that the session id stays the same, just the variables that get unset.
I have unset($_SESSION['id']); at only one place, and this code is NOT run.
The problem just baffles me and I have no idea why this particular pages does this.
It may be totally unrelated, but we had problem with Firefox and sessions on certain pages in the past. It happened most of the times while developing and therefore refreshing a particular page, have you tried clearing your browser cookies which is where session is stored?
As an addition:
Check that you assign sessions before you write anything to the response stream.
Also we had similar problems with sessions set in a pages that were doing a redirection (i.e. a login page that if successful would set the session and redirect to the another page.)
I'm not sure about PHP but in .NET that can be overcome by explicitly setting not to terminate the response so that all headers are written to the response stream.
Fixed now, actually have no idea what I did. but I've change some html but mostly CSS.
So there is a strong posibility it was CSS-related.
I have very simple page at the moment. The only thing that I using PHP for is a switch menu system. So in the switch system i check the variable "menu" to see what it's set to.
So for example if i load the contact info it would be
www.mydomain.com/?menu=contact
in the php switch code under "menu" there is only one thing.
include("contact.php");
Ok, I know this is very simple, but the problem that I am having is when i change the "contact.php" the changes won't be noticeable in the browser, not until i actually go directly to that file. So I would have to browse to www.mydomain.com/contact.php and then i see the difference. After doing that I can go back to "www.mydomain.com/menu?contact" and see the difference.
I have tried to reload, refresh and reload cache command in Firefox, Safari and Chrome. They all work the same way. How can I fix this, it's rather time consuming to refresh two pages each time I need to see the changes.
Are you using a caching system like eaccelerator or APC on your system (phpinfo(); would tell you).
What happens if you print the time() and filemtime() of the template before requiring it, it should tell you when it was last modified.