Forum
Welcome, Guest

File exists error on "Click to go back" button
(1 viewing) (1) Guest
Ask all your version 2.0 questions here.
  • Page:
  • 1

TOPIC: File exists error on "Click to go back" button

File exists error on "Click to go back" button 2 years, 3 months ago #773

  • bao10
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I got the following error when I clicked "Click to go back" on Google Chrome. Traced the error to ShowGoogleMap.php and ShowGoogleMapLatLong.php.

Here is the error:

"Warning: fopen(../../../../sgm535604File.map) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\project\prod\components\com_sobi2\plugins\google_axresults\ShowGoogleMapLatLong.php on line 26
Can not open file for read in Show Google Map Lat/Long
"

Basically, instead of this check $mapFileHandle = fopen($mapFileName, 'r') or die("Can not open file for read in Show Google Map Lat/Long");

I checked for if (file_exists($mapFileName)), before executing codes from

$mapFileHandle = fopen($mapFileName, 'r') or die("Can not open file for read in Show Google Map Lat/Long");

up to $sgmMap->printOnLoad();

That seems to fix the problem.
  • Page:
  • 1
Moderators: jasper, nicholas, henry, jerry
Time to create page: 0.43 seconds

Login