I dont know what to do, on my local LAMP stack and my other server's LAMP stack it work perfectly fine so I have no clue why it wouldn't on my main server. At the start, I thought that the sessions werent saving properly so I found out what folder they saved to, went to it and found an empty sess_... file and a small sess_... file that is 67B. I checked the big one and it contains the right information but the client is obviously for some reason getting the 0B one, does anyone know a fix for this?
I can provide code if necessary but I dont see how it would be.
I just tested it on Edge instead of Chrome and that somehow seems to work, I have absolutely no idea what is going on
Related
I'm a little lost here and didn't know where else to go so I thought best place to ask would be here... So, I recently upgraded my site's server from shared to VPS after which I attempted to download an Excel report from my DB like I usually would do regularly. However, since the upgrade after I download it, I get an error when opening the documents; it gives me the option to still open it but it is clearly corrupt or something. I have attempted to debug this issue but I am most definitely struggling with this one. I've also made sure I'm using the most recent version of PHPExcel but sadly this didn't resolve it. The error I'm experiencing is as follows:
The file format and extension of "myReportName.xls" does not match.
If anyone can shed a little light on what might be going on here I'd really appreciate it, and thanks in advance!
UPDATE: I don't think this would affect it, but I thought I'd add I also had a bug with my DB after the upgrade where nothing would insert due to fields not having a default value. They worked fine on the shared server but on the VPS I had to edit all my columns to have a default value of null. Also in case someone asks I didn't think it was necessary to post my code as it was working fine before the server upgrade so I thought the bug wasn't there, but if I'm wrong feel free to let me know.
Let me preface this with; I do not work with PHP. The code below is something that we inherited and look after. It talks to Google Sheets to display information onto some TV's around an office, and thats it. The company who set this up originally have ceased trading, so we can't go to them for information or ask them how to fix it, so I thought I'd come here.
Whenever I go to http://ServerIP/FileName.php?u=Sales/ it returns the error "Google failure and nothing to display from cache" which is defined near the bottom of the code, however, I've no idea how to get it work. I can also see on line 62, there is this - "${${"GLOBALS"}["kjvieqjie"]}="cache/".${${"GLOBALS"}["bjlwuz"]};" which I've tried to change to c:/Xampp/htdocs/cache and to no avail.
This runs from a Windows Server running Xampp - ive ensured that in the folder the php file lives in, there is a folder called "Cache" and that read/write permissions are set to full control for the Everyone group, so i can't see this being a permission issue, but i could easily be wrong.
Code can be found here
Any help would be greatly appreciated, and if you need anything to assist with the resolution of this, let me know :)
This is the weirdest problem I've never met on PHP (I use it since 10 years) and that's why I'm writing this message. PHP version is 7.2.
I think it's not important but i use CodeIgniter, my problem is before, in the first index.php. All works in local, but when I put my code on a server (which is a shared server unfortunately), the behavior is :
if, in the beginning of index.php, there is an image using data:image with base64, the page displays
if not, i have a blank page
I just can't understand. I noticed this when i added a phpinfo at the beginning, suddenly my page displayed because the logo of phpinfo uses this kind of picture.
I made many many many tests, and the only way to make it work is using a data:image base64 before (and by the way, just before I use "" to put it in display none and it still works...). Using a link for the image doesn't work.
I have no error, nowhere.
I just want to know if someone has an idea about what is happening here ?
Thank you so much ! (Sorry I'm not an english native person)
I think you are using windows machine for local development. And your server is Linux based...
Linux server is fully case sensitive. Please check folder,files name is correct or not..
If a folder is ../View/123.jpg
Then. The src="../VIEW/123.JPG" will work on windows machime. But error in linux server..
I am getting the error GoogleMapAPI:createMarkerIcon: Error reading image /path/to/my/image.php when trying to load a map on my website. This only happens on my staging and live systems. Everything works fine on my dev machine. The files are completely the same on all three systems.
I couldn't find a definitive fix for the issue, but others did have it, too because there are a couple of threads on other boards regarding this issue exactly.
The path to the image is correct and the file is accessible.
I don't know if anyone is still having this issue. But I spent quite a while on GoogleMapAPI's createMarkerIcon() method because it would load the image just fine on my dev machine, but failed with the message GoogleMapAPI:createMarkerIcon: Error reading image /path/to/image.png on my staging and live machines.
I know that this has been a problem a couple of years ago and couldn't find any threads marked as 'solved' yet. So I figured, i'd share my insights with the world here.
For me, the problem was, that $_SERVER['DOCUMENT_ROOT'] returned a wrong directory. This is most likely the case, if you're using virtual hosts with some aliases configured. As long as you don't call the website over the alias, everything works fine. But as soon as you call the website with the alias, the $_SERVER variable fails to reflect the correct values. This also isn't only the case with the 'DOCUMENT_ROOT' index.
The Maps API, however, uses just this variable to determine the absolute location of the icon image. The workaround is quite simple, if you know what you're looking for. First double check that $_SERVER['DOCUMENT_ROOT'] returns the correct path. If it does in fact return the correct path and you're still getting the error, you'll need to keep looking for a solution. If it doesn't, you can easily write an override method for the API's createMarkerIcon() method. Just replace the $_SERVER['DOCUMENT_ROOT'] variable with your real document root. To retrieve it, use the following line in your index.php to create a constant with the correct path. The final slash is optional, but I recommend you add it.
define('DOCROOT',realpath(dirname(__FILE__).'/'));
That should do. Solved the error for me. Just don't make modifications to the API itself to maintain updatability.
I really need help on this one.
I am working on a site and made some changes on some lines, but after I uploaded it there were no changes happening. I have cleared my cache, even did ccleaner and a restart. Open the file again via ftp and the code is there but when I go to the site nothing has changed. I have also tried different browsers.
Sorry for bad English, but I really needed your help.
edit 1: i have tried deleting the file and i get 404 page. But when i uploaded it again, with the changed code, it display no changes at all again.
edit 2: i really think it's on the server side problem and any idea about it would be helpful, not some file being misplaced or something. i know i am working with the same file and put it on the right folder.
EDIT 3: SOLVED, the technical personnel said that the server is running eaccelerator and mtime was disabled and was causing the problem.
Correlate to a localhost (xampp or similar), i.e. if you don't see the same issue than you know it must be a transfer issue. Divide and Conquer in this manner to troubleshoot.