Using CKeditor on my project.
Recently installed fmath plug-in. Followed all instruction and created PHP file that will get image from editor and save in website directory.
The problem is, there was something wrong with fmath editor: when I tried to press "Ok" (it must send generated image to php file and show result image in main CKeditor textarea) nothing happened. I activated webconsole of FF and as you see browser tries to get some crossdomain.xml. I think editor configuration has nothing to do with this problem. fmath editor doesn't even try to send something to php file (firebug doesn't show any XHR activity)
Can anyone explain me, what can I do in that case?
It is a security issue: crossdomain.xml contains the security policy for the domain you are trying to access. Resolving this issue is (relatively) easy: Just add a crossdomain.xml at the top level of your web server's content root.
You can learn all about security policies and the Flash security model in Adobe's documentation, or download this pdf.
Related
While troubleshooting my site I have ran into this error.
"This page is trying to load scripts from unauthenticated sources"
I am slowly learning to head to the Google developer console, which I found...
(program):1 Mixed Content: The page at
'https://www.thepixelfoundry.net/main/' was loaded over HTTPS, but
requested an insecure script
'http://api.sitestate.ru/scripts/stat/sitestate.js?r29'. This request
has been blocked; the content must be served over HTTPS.
This is my first Wordpress theme, as I built this page in order to better learn Wordpress. I have no idea what i sourcing that script.
I have checked my:
functions.php
header
footer
index
when I googled the scripts domain as the .ru already raised a red flag I received a warning from google questioning my computers recent traffic.
now im terrified....
How can I find this script? I have also installed Sucuri on the Wordpress side...and everything seems clean with a scan.
I got the same error in console, after I installed Ace Stream Web Extension
If you are working with it on remote server, then download all WP files and folders to your local machine and use "Search from all files" function. It is included in most text editors (Sublime, Notepad++, Brackets, etc.). Then you can track where this code comes from. When it comes from certain plugin you can disable the plugin. Or just remove that code.
But you should search, where that code get in your WP in first place. Is it some uploaded file that's supposed to be filename.jpg but is filename.jpg.php or comes from plugin or theme.
(I'd comment it but too low rep :/ )
I have a code of online shop on Prestashop, and I have for example content="Shop on PrestaShop" in meta-data of current page, but when I'm trying to find that String in project in Webstorm to localize which page file it is, I get nothing.
So I guess it's some PHP magic working there. So now I have huge problem with finding proper file in order to change that String. Is it possible to check a filename and it's extension via Google developer tools? I'm starting site from server, not localhost.
You can only find the files that are delivered to client's machine in chrome developers tools by visiting:
Inspect > Sources
The server side files can be visible only if you can see them in URL. If the path is re-written using something like .htaccess in apache, then there's really nothing that you can do to find out the file.
These type of files are meant to be present only to hide the actual file path.
Some background. I am using XAMPP on my laptop as a standalone, single-user server. I have a PHP/Ajax/JavaScript application that to all intents and purpose is a contacts and contact management system.
At the moment, web links are linked to the records as they are displayed to provide relevant content which the user selects by clicking the hyperlink. I would like to have the ability to include file links as well. So to my question:-
I have a file URL of the kind file: ///G:/home/scans/passports/tony0001.pdf which works as expected when typed into the address line of Firefox and Chrome, i.e. it fires up Adobe Reader and opens the PDF file. I use PHP to generate the relevant anchor statement using the information retrieved from the application. I give the href below:
href=file://G:/home/scans/passports/tony0001.pdf
The link does display as a URL and if I hover the cursor over the link it shows the correct File URL. If I click on the URL nothing appears to happen. I don't see any error messages.
So, my question is, is there a PHP.INI option I need to set to allow this? The functionality I am looking for is to be able to embed any sort of URL into my application and have it fire up the right handler and file.
I understand the point made regarding a potential security issue, but as I explained, I can type the file URL into the browser page and it opens as expected.
Update 16/10/15
The solution to this is to embed a windows shortcut which points to the target document in the xampp/htdocs directory (or a sub-directory). The links then work correctly using the very simple form of href=tony0001.pdf
Browsers disallow local file access such as file:// because it would be a security risk.
I just change my css and js file then upload, but the changes do not show up in the browser. But, if i download that same file to my desktop and open it in a text editor, the changes are there.
I have been facing the same problem about 1 year ago. It can not solve by deleting browser cache. Then i was thinking that is the problem of hosting provider and i contact them. After then they solved this.
So i think you should contact your hosting provider.
You are uploading to wrong server (directory) or you are testing in wrong URL.
I have a wordpress website which provides a download link to a word document. When user clicks on the download link in IE-9 a windows security pop up is shown to user. It works fine in all the other browsers.
I have done some search and found that it is due to some security settings in IE-9.
Is there any way I can overcome this setting because all the users will mostly have this security setting?
UPDATE This problem comes only if user selects open. If user selects save or save as option from the Save dialog it works fine.
This is the security pop up
This answer provides a server side fix, if you are running IIS. The issue is that the security popup appears when a user tries to open a Word document through IE9, rather than straight download it.
...We have the setup on IIS7 and elected to disable 'WebDAV' (All updates are done by uploading the files anyway). To do this open IIS7, select either the server or the site and click the "Request Filtering". Action - Deny Verb... and enter PROPFIND. Create another for OPTIONS. I found that the server did not need a reboot and it was fixed straight away. Hope that is useful to someone. -Stuart
Credit goes to Stuart from the Moodle forums: https://moodle.org/mod/forum/discuss.php?d=143111
Resolved this. The Internet explorer does not handle word files properly so I implemented a PHP script for explicitly downloading the files and it worked