简体   繁体   中英

Redirection not working in CakePHP 2

I have an application and its working locally perfect.

on production, all pages are fine which haven't redirection.

  • Its connected with database because data showing on list pages
  • I have checked controllers/models for starting and ending code (spaces removed and closing PHP tag removed)
  • I checked permissions (all folders are 755 and tmp is 777)
  • I updated debug value to 2,3 but not showing any thing
  • I checked using PR few variables and in view source it shows few spaces (didn't get any clue that from where the spaces are embedding)
  • Also, I have uploaded fresh copy of lib/Cake
  • One another project in same version of Cake is already deployed and working perfectly (Prefix changed for both projects)

On redirection, it shows a blank page. I checked view source of this blank page and it contains 32 spaces.

Any Clue why its happening or from where I need to remove these spaces?

Issue fixed.

Because it was issue of IDE.

I am using sublime but same Dreamweaver have same issue.

For Sublime, we can load a package : https://github.com/SublimeText/TrailingSpaces

For Dreamweaver, we need to do manually by search and replace. for more details : http://www.jaredstenquist.com/2009/02/13/removing-extra-linebreaks-and-spaces-in-dreamweaver/

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM