Smarty web site inner pages are not working - http-status-code-404

I am doing a task in a site which is done by other programmer in Smarty.
Basic flow of my task
In admin panel, the user upload a CSV file
Using cron the CSV file data to be stored in MySQL database. It is a Godaddy's shared hosting.
Right now the cron is executing but the data are not import. I have to fix this issue. This is the task I am working on it for last couple of days.
Note - It is not completed. I am working on it.
Issue
Today client sent an email that inner pages of the site is not working. But I worked only in the admin panel of the site. I am sure that I worked in admin folder. Client said the front end was worked before I start the work.
My doubt is, when I investigate the issue I got a clue.
that is home page is working fine, the menus for the homepage are loaded properly from database. only few pages are having 404 error only if it has SEF URL
i.e
1) http://www.example.com/category/Baseball-MLB - is SEF url and not working, but it is working fine in URL - http://www.example.com/category.php?arg1=Baseball-MLB
The same type of links working for many pages and not worked for SEF urls.
I am not sure what makes this issue. I tried in forums but did not get a solution.
The site is in live so I have to fix it as soon as possible.

Related

Cannot log in to Drupal site

I have a VM that I set up to do development on two sites hosted on Acquia with the same codebase. I'm using version Drupal 7.26. I have it where I can access both sites from the host computer, but when I try to log in using /user/login on either site, I get nothing. The POST returns a 404 containing the log in page again.
I've tried settings $cookie_domain = '.my-site.dev' as well as $cookie = 'www.mysite.dev'. Neither has any effect. I also tried adding a bunch of random charactersto the file to make sure I was editing the correct file; with the random characters, pages didn't load at all. (See https://www.drupal.org/node/611920#comment-3110010.)
I also tried doing repair table sessions. I forgot which site I saw that recommendation from. I also tried delete from sessions just for kicks. Neither worked.
Any ideas? Thanks!
edit: Per https://www.drupal.org/node/261411#comment-3182566, I tried to go to www.mysite.dev/?q=user/login. This did not give me a 404, but I had tried (unsuccessfully, it seems) to reset my password through the database. I'm at least getting an error about a bad username/password combination rather than nothing at all. Still, I would think /user/login should have worked, too.
edit 2: The production site uses CAS, but logging in through /user/login still works.

ASP.NET single page application or MVC app and 404.15

I created a ASP.NET single page application. When I run it I get the following 404.15 error. I see the same error with an MVC application without a Web API in it also.
I commented out the ConfigureAuth code as below:
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
//ConfigureAuth(app);
}
}
Now I get another error which is below:
I tried to duplicate this on a different laptop, and I don't see a problem there.
Is this a directory level permission issue on this particular laptop where I created the app? Appreciate anyone can shed some light on this to fix this.
UPDATE 11/9/2014
I did some further debugging and found that the applications works fine with no authentication and Windows Authentication. When the authentication is forms, I see this problem happening. As you see in the IntelliTrace, the GET request is looping back to Account/Login multiple times and finally give with a 404.15 error. I added a authorization section in the web.config to allow all users to access the resources with , I still see the errors.
I see a major difference between how my laptop and the surface pro 2 behaving with the same application. In my surface pro 2, the home page is displayed and the redirect to account/login never happens. But in the laptop the redirection is happening to account/login.
There are tables in the surface pro 2 created by the asp.net identity. But in my laptop there are no tables. I believe when the application starts, there is no requirement for the tables and the control should go to the home page.
I hope anyone can provide an answer with my additional info.
At first sight looking at the requestedUrl it may be the case that you are always redirecting to the same page (the login page) which creates an infinite redirect loop until the request url becomes too long: Since there is no code I can't be sure about it but I would suggest you to check your redirect url. The authentication appears just because you outcommented the ConfigureAuth method but I don't think it will solve the problem.

CakePHP Client Login Issues

I'm stumped. We have a client who cannot log in to our system and yet we can log in fine using her credentials. She can also log in fine from her friends home.
Upon entering her credentials the screen simply refreshes and nothing happens when in fact she should be brought to a dashboard page. When I monitor the request via the Chrome web developer tools I can see that the dashboard does get requested after log in but then suddenly we're brought back to the log in page.
Now I've cleared her cache, cookies and all other temporary internet files from both IE9 (her default browser) and Chrome. Nothing happens. I've read that changing session names might help but that did nothing either.
The system is using the newest version of CakePHP (2.2.1) and absolutely any help would be appreciated.
This issue has been solved. Turns out this client in particular had the wrong date and time set on her computer. Upon setting the correct date and time, she has been able to log in absolutely fine since.
Thanks everyone for help!

Two equal Joomla sites in different domains, behave differently

I have a site and since a few days, it has a problem. My site is prosklitiria-mostracarta.gr
I make another "TEST" site. ellinixx.gr
When i already finish the ellinixx.gr site and WORKS PERFECT, i copy the ellinixx.gr site and the database to old site : prosklitiria-mostracarta.gr
Now the two sites must be the same, but i have problem.
try to see
http://ellinixx.gr/index.php?option=com_content&view=article&id=106&Itemid=116
and try to see
http://prosklitiria-mostracarta.gr/index.php?option=com_content&view=article&id=106&Itemid=116
The first site has 160+ photos, but the prosklitiria-mostracarta.gr site has LESS than 80 photos...
But the sites is Sames... Copy... And database too...
All are the sames...
why cannot display all the images ?
In localhost (local) the site works perfect.
If i put it on other domain, it works perfect.
But in domain prosklitiria-mostracarta.gr the site does NOT display all the images :(
Can someone help me...?
Jackjoe has the answer - install Akeeba Backup and move the site again using that component. I move sites from our development server to live all the time and I've never had one fail when using Akeeba Backup.
How did you move the site? Something is obviously different or the site would be the same. The images are there, but SIG Pro isn't adding them to the article.
I have used this tutorial a couple of times: link to howtojoomla.net

cakephp auth login problem, only white screen after login

I’ve created a small cakePHP application that uses the auth component to manage an admin section for changes.
The problem I’m having ‘only in the production environment’ is that after I login all I can see is a blank white screen. I should be redirected to a ‘dashboard’ view. This blank screen is also what I get with all other ‘admin’ prefixed views that require a logged in user, thus the auth component.
What is strange about this are two things, (1) this works fine in the local host and (2) this application is a copy of one that works fine in both the local host and production.
What I’ve done to try and resolve this is:
-Checked the previous application copy; nothing different found
-Checked that the passwords were hashed
-Checked that the .htaccess file was uploaded in ASCII format (suggested by the host)
Any help with this is appreciated.
Ideally I’d like to understand how to trouble shoot this type of problem.
Thanks, Paul
Clear out your tmp cache files anytime you move a cakephp project to a new server or folder. They are located in /app/tmp/cache/

Resources