Cakephp 4 with Friends Of Cake cakepdf not downloading file in Firefox - cakephp

CakePdf plugin was working with 'download' => true, then lost that functionality.

Spent way to much time trouble shooting this. Only to figure out a Firefox upgrade re-set the application settings on how to handle PDF files. Changed back to Always Ask vs Open in browser. I knew this, but I assumed something else with the issue.

Related

ionic mobile app gives white screen

I have created one ionic app it runs perfectly fine in browser but when I convert it into app it gives white screen.
I have already install white list plugin and allowed all url in config and also have kept meta tag. Am not able to find any other solution.
When kept simple html file am able to view it.
Any help will be grateful.May be good way to debug will be also good.
Connect your phone to PC with USB cable and remember to keep USB Debugging On. Now, navigate to chrome://inspect. You'll find the device name and click on "inspect". On Console tab, the error list will give you a hint about what is wrong there.
In my case, a custom service was Injected in controller which had been removed at some time as It was not used anywhere.
Ok just answering this question so it will be helpful to all.
Below blog was helpful for me that how I can debug
http://gonehybrid.com/how-to-debug-the-white-screen-of-death-in-your-ionic-app/
And guess what was issue, folder name in app is case sensitive. I was just need to change a folder name as per exact case sensitive path I provide in index file.
Mostly such thing occures because of a javascript error. You say it runs in your browser. Are there some exception in the console?
Not everythings is equal between browser and device, for example plugins. You have to be sure, that all used plugins are installed properly.
If you deploy on android, you can use android monitor to get console output. On ios xcode has already an integrated debugger.
I had this horrible issue because I compiled my Android application with Cordova 6.x and the project worked with CrossWalk plugin. In my case, the solution was uninstalling Crosswalk. If your project has installed that plugin, try to uninstall it and compile your project again.

CakePHP DebugKit ERR_CONTENT_DECODING_FAILED

So, this is the second time I have seen this but cannot for the life of me explain why?!?
All of a sudden the DebugKit plugin stopped working and would not display in the browser. Looking at the console I can see the following:
debug_kit/js/toolbar.js net::ERR_CONTENT_DECODING_FAILED
So far I have tried rebooting laptop & server. Clearing cache/cookies in browser. Re-uploading the DebugKit plugin folder but still to no avail. Does anyone have any ideas what could be causing this? I have tried the good ol' "Google" approach
I had the same problem.
just make sure you don't have any extra line or space after ?> in your modals, controllers and mainly on bootstrap ( I had a extra line one of my bootstraps's plugin).
or you can delete the ?>, php will work fine.

Drupal site only shows text

I have a drupal 7 site which has been working greatly until now, but now it just show only text on front and back-end also. I tried to clear the cache and change appearance theme but didn't fix it. I tried to monitor in chrome, by refreshing and monitor Network and Console windows and found in /sites/default/files/ most jpg and png files are not found. But no one has touched the site until we found out it is broken.
Check your Drupal log and your webserver logs. Probably you have problem with file permissions.

Wordpress post content disappears when I click edit post

I am working on a site: greatlakesecho.org When I try to edit a post, the content just disappears from the visual editor. I am running the latest version of Word Press but this happened on the previous version as well. I am using the Project Largo theme with the site.
The site was recently migrated from to a new host and has gone an overhaul into a responsive design. This first started happening when I changed the character encoding to remove odd symbols from the posts. I was successful in that by changing it to utf16. At this point only older posts that were created before the migration would disappear when I clicked edit. I have since updated to the latest version of Word Press and it happens to every post.
I've already made sure the wp-config has the correct encoding.
It happens with all themes.
Tried deactivating all plugins.
I also see this when enabling debuggin:
WordPress database error: [Table 'greatlak_wp776.wp_itsec_lockouts' doesn't exist]
SELECT lockout_host FROM wp_itsec_lockouts WHERE lockout_active=1 AND lockout_expire_gmt > '2014-04-22 19:52:36' AND lockout_host='35.9.132.246';
WordPress database error: [Table 'greatlak_wp776.wp_itsec_lockouts' doesn't exist]
SELECT lockout_user FROM wp_itsec_lockouts WHERE lockout_active=1 AND lockout_expire_gmt > '2014-04-22 19:52:36' AND lockout_user=93;
edit: Extra Info
Wordpress has this documented on their documentation. It can be found here, of course you will be converting to utf16 instead of utf8. http://codex.wordpress.org/Converting_Database_Character_Sets
Check your wp-config file's encoding, make sure it's set to utf-16
Activate a new theme, see if that still happens. If so, it was a theme issue.
Deactivate all plugins, see if it still happens. If so, reactivate 1 by 1 and see when it happens again.
Also, check your browsers console for any errors
I had to remove the Navis Media Credit plugin manually. I searched through the plugins folder using WinSCP and apparently when I was removing all the plugins using the WordPress admin panel, this one wasn't actually getting removed. This plugin was conflicting with the theme I am using and I learned this by deleting all the plugins and using one of the default WP themes.
It may be a Chrome Extension. Here is what I experienced...
In Chrome - a Wordpress site loads the Add New Post screen which appears to get overwritten - this happens after typing a few characters (not immediately) in the title or body. Updated theme, removed plugins, no change. At one stage noticed a bug in html2canvas.js but now cannot reproduce.
Tested in Firefox, works fine.
Traced to a Chrome Extension - Screen Shader - F.lux for Chrome 1.7.720 - one that removes BLUE from Chrome display (for night work). It probably does use use html2canvas. When it is deactivated, Chrome again behaves normally. Tried with another plugin "Blue Light Filter Guard" - not as well featured - but it does not trigger the bug.
May not be the same as your problem, but try in Firefox and check your Chrome Extensions.

How do i enable the firefox xbap plugin

Firefox recently blacklisted the plugin that allows xbaps to work in firefox
This is a huge problem for me as one of my companies enterprise products is a web application that makes use of an xbap and must work in firefox.
Does anyone know if there is an update to the blacklisted plugin or if it is possible to overwrite the blacklist and use the plugin anyway?
The Windows Presentation Foundation plugin is no longer blocklisted. Are you sure it's still blocked?
What you need is to place the NPWPF.dll in the Firefox Plugin folder.
That works perfectly.
You can find the NPWPF.dll file in :
[WINDIR]\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation

Resources