is ACL the reason for my buggy module? - php

I've made a custom module that successfully adds a new menu in the admin->configuration section and saves some settings to magento config, and also creates a table at first run/install. Everything works great locally, but when I move the module to another server I get a 404 error when clicking the link added in the admin area, and nothing seem to work - for maybe a couple of hours. Eventually it just starts to work. I've usually just came back the next day and the 404 is gone and everything works as expected, but if I try to clear all caches, reindex the site, even manually clearing the var folder - nothing will help. It will still give me a 404 error until a couple of hours or a day later.
I don't fully grasp what I should do to avoid the error - but I'm just confused as to how this problem can go away by itself after a while?
Thanks in advance!

This is very common when installing a new extension (that adds Admin pages). All you need to do is log out, and log back in.

Related

Wordpress site only half loaded

I got a call from a customer who's Wordpress site is not working and I started taking a look at but I cannot understand what's going on there.
On the same server (only another directory) there are other wordpress setups running and they are working perfectly fine. So that's the first part that is kind of ... interesting.
When I logg in to the WP-Admin and access the page again it loads without any problems. Everything is displayed correctly. Same if I add a PHP GET-Parameter like ?anythinginteresting.
In the apache error logs I only find "PHP Notices" - nothing I would worry about.
Any hints? I'm going out of ideas right now...
Seems to be a caching issue as mentioned by #michealrmcneill it comes from the WP-Super-Cache Plugin. This plugin is not "knocked out" when disabled in WP-Admin it needs to be deleted in /wp-content/plugins/wp-super-cache/* to be removed. Addionally there are two files: wp-content/advanced-cache.php and /wp-content/plugins/wp-cache-config.php that are related to the plugin.

Magento site front end products info display breaking the site

I am facing strange issue with my magento site. My website's front end is not working, but admin works fine.
It's showing nothing on front end even enabled errors and checked error log also, but nothing there. I am able to run index.php file but if works only before below line.
Mage::run($mageRunCode, $mageRunType);
After this nothing happens. No error message just browsers "connection reset...." message is displayed.
Anyone please help me to sort this out ? Please let me know if any more details I have to provide.
Edit -
After whole day R & D I got inventory is creating issue. anywhere where products ,products count and info related to them is displayed that section causing this issue.
I have checked inventory in admin. Everything seems OK. can anyone guess now what can be issue ?
I remember when developing magento modules before. The culprit will always newly installed modules.
If you can't find anything from the logs try to disable one of the modules you just installed. Usually can be found at app/etc/modules/.
Good point is try to remember what you did last time before it shows the white screen. good luck!

CakePhP Alaxos plugin error

So after a few days of work with ACL and Alaxos i finally got to a point where i can see the end of the tunnel. Everything is setup correctly, when i create a user the user goes into the right group and so on.
Now to manage this ACL i wanted to use the Alaxos plugin and i have manged to install it HOWEVER there is an error:
When i go to /admin/acl i get the correct following view:
Now when i go to for instance permissions under and under roles i get the next view:
Now this is fine and all execpt that i cannot edit, modifiy or add any permissions actually this goes for the whole thing i simply cannot touch it other than clearing and building it.
Has anyone tried anything similar or have a solution?
Also please note that if i go under fire bug and try to see what is happening there are images that it cannot load. However its not trying to load these images from the plugins webroot it is trying to load them from the cake webroot.

Download button works when logged in but not logged out

Joomla version = 2.5.6
PHP version = 5.3
We are using the DButton module as a download button inside an article and using
{loadposition xxx} to display it.
About 5 days ago, the button worked fine but since then, something has happened and now it only works if a user is logged in. If they aren't, the button just refreshes the page. (but does show).
Also during testing we unpublished the module - and it took over 5-10 minutes for the module to 'vanish' when not logged in. When logged in it 'vanishes' immediately and indeed when logging back out it reappeared despite being unpublished!
None of the module files have been edited, nor have we changed anything/installed any new extensions on the website in the last 2 weeks or so.
We used JDump and found no errors within the module, therefore am truly unsure what the problem could be.
We also got in contact with the developers and they said they had never come across or heard of a problem like this before and that they would take a look, however we have not heard from them since.
Reinstalling the module didn't help either.
Has anyone ever come across anything like this before or have an idea or solution?
Caveat: I never used DButton but looks quite handy.
Are you using custom levels? What are they set to? It sounds like something to do with permissions set to registered only instead of public somewhere.
Try disabling all other extensions just in case.
Are you linking to a URL or a file on your server?
Maybe take a backup with Akeeba and install a local version to see if it does the same thing. Can then try replacing your template with a core one as well as uninstalling everything except for DButton.

Identify pages which refreshes automatically in my site

I have a site which uses wordpress. For some reason, some of my pages keep refreshing continuously. I am not able to replicate the issue continuously. However, in random I have seen some pages keep refreshing automatically. When I retry the same pages after few mins, it is working fine. My users also experiencing the same problem. When they report me the issue with a url and if I check that page it is working fine. So, I am sure the issue is there but unable to replicate the problem or troubleshoot the issue.
This is not a browser or system issue. The issue occurs with registered and unregistered users.
So, I need your help on this to troubleshoot this problem. Is there anyway to find out whether the page is keep refreshing by adding some code in wordpress theme php files like writing some sort of logs, etc.? So that I can try to troubleshoot the problem.
The same theme with plugins works fine in another site with other hosting provider. I have also checked with my hosting provider. They replied back and said they are not able to find any issues on their side and cannot help further, as the issue occurs in random.
Thanks in advance :)
This sounds like your site may have been hacked. Check the page source (View Source or Ctrl + u) for <script> tags that you don't recognize. If you are unsure, try disabling all of your plugins and use the default theme. If the issue persists, then it is most likely an issue with your site being hacked, and you should reinstall WordPress from scratch, and do fresh installs of all plugins and themes. If you are using a custom theme, upload a version that you know was working. Also, be sure to change passwords for your dashboard and hosting account.
If disabling a plugin or using the default theme makes the issue go away, then it's a bug with that particular theme/plugin. In this case, report the bug to the appropriate party (person/company responsible for the particular plugin/theme that's causing the issue).
How to Debug
Try to find a way that you can consistently test for the problem. For example, if you can refresh 20 times, and it happens twice every time, then you have your test to use. It sounds like it won't be as simple as this, but that's the basic idea... find the minimum number of times it takes to come across the issue on a regular basis, and test for it 3 times for each plugin you disable (and when you turn the main theme back on).

Categories