This topic is locked
[SOLVED]

 View in browser Warning: Fatal error

10/18/2019 4:58:12 PM
PHPRunner General questions
Spider Webster author

Viewing in browser local today came up with the following error:-
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'D:/Spider Webster/OneDrive/Documents/My Web Sites/PHPRunner/PHPRunnerProjects/Utilisation/output/utidata_list.php' (include_path='.;C:\php\pear') in Unknown on line 0
I initially thought I had messed something up so started to revert to project backups but all the same?

Loaded another project and this was the same.

Everything works ok if I ftp to live site but this isnt a good way to develop and test.
anyone else come across this?

lefty 10/18/2019



Viewing in browser local today came up with the following error:-
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'D:/Spider Webster/OneDrive/Documents/My Web Sites/PHPRunner/PHPRunnerProjects/Utilisation/output/utidata_list.php' (include_path='.;C:\php\pear') in Unknown on line 0
I initially thought I had messed something up so started to revert to project backups but all the same?

Loaded another project and this was the same.

Everything works ok if I ftp to live site but this isnt a good way to develop and test.
anyone else come across this?


Looks like a path issue to me . Have you included a path to the server and testing in localhost? One of your paths or includes is pointing to server directory. Localhost can't find it?

What I do in this scenario is if you have remote access to database , use database remotely in project then test localhost. That may solve your testing issue. See Here . if not then In localhost the

path needs to relative to the folder / directory used.

Spider Webster author 10/19/2019

It looks like this started with upgrading to 10.3 from 10.2

I created a new project using vacation template and this works fine when clicking view in browser.

I did notice tho that the project is saved in documents folder on my C: drive and not to the location that my other projects are on my D: drive.

If I move my project onto the C: drive then everything works ok and I can continue to change and view locally which is an initial fix
Even now if I create a new project and locate it to my D: drive it will not browse in localhost 10.2 used to be ok with this.
Where or which file would I change the path details?

lefty 10/19/2019



It looks like this started with upgrading to 10.3 from 10.2

I created a new project using vacation template and this works fine when clicking view in browser.

I did notice tho that the project is saved in documents folder on my C: drive and not to the location that my other projects are on my D: drive.

If I move my project onto the C: drive then everything works ok and I can continue to change and view locally which is an initial fix
Even now if I create a new project and locate it to my D: drive it will not browse in localhost 10.2 used to be ok with this.
Where or which file would I change the path details?


If the project was originally built on D: drive that could be the issue since your error is pointing to C: drive. See this post if you are using WAMP server Here . I would run a clean build on the drive PHPrunner 10.3 is installed on.

If you are not using your own server and using PHPrunner built in server then I would think localhost would work on the drive the program is installed only. You may need to contact support on this one.

Spider Webster author 10/19/2019

I've had phprunner for a couple of months now and first project was saved straight to D: drive with about 50 builds all working fine with local host. Plus another project.

I can live with working from C: drive tho as I copy all my builds when I've finished working anyway.

Thanks for your help John. 👍

Admin 10/21/2019

As a general rule of thumb - do not put your projects under OneDrive, Dropbox or similar.

D
DealerModulesDevClub member 10/21/2019

I ran across this recently and I don't know if this is related to your issue but I did notice that you are using OneDrive.
If you are on Windows 10 Pro and just received another update from Microsoft, the latest one turns off SMB 1.0/CIFS File Sharing Support.
To turn it back on, go to "Turn Windows features on or off" in the Control Panel / Programs area.
Look for SMB 1.0/CIFS File Sharing Support and click enable.
This is used for sharing files from a different networks. (like Map Drives, OneDrive, etc.)
Paul

Spider Webster author 10/27/2019

Thanks Paul

I tried that and makes no difference.

SMB 1.0/CIFS File sharing support was running for automatic removal and server but client deselected so selected that but hasn't changed anything, project wont view from localhost.

Am doing what Sergey recomends and running all projects from c drive.

lefty 10/27/2019



Thanks Paul

I tried that and makes no difference.

SMB 1.0/CIFS File sharing support was running for automatic removal and server but client deselected so selected that but hasn't changed anything, project wont view from localhost.

Am doing what Sergey recomends and running all projects from c drive.


I did not see you had the output on onedrive, that probably will cause all kinda of issues unless you are using Access and that is where the database is. I still would not test with that path . Just use the your local drive for everything

.

  1. Install PHPrunner on C: Drive or your main Drive .
  2. Output folder in Build on same folder as your project folder!!!! C: Drive or your main Drive.
  3. If you are working locally - use built in PHPrunner Server in output settings. (C: main drive ).
  4. Run a new build and test locally. ( C: where IIS is installed - main drive ) And where PHPrunner Built in server would be installed if you did that in step 1. Then should work.
  5. Look at your folder where the build went , make sure all the other project folders for PHPrunner on that particular project are also in that folder along with the phpr.exe project itself. If you see all the source directories

    then you should be good to go.
    You can always backup your outputs on another drive if you wish to like the D; Drive. Just copy and paste the output folder or the whole project folders.

    There should be no issues if you follow above. Hope this helps.

Spider Webster author 10/27/2019

Thanks John thats what Im doing.

I only brought this up as first of all it was all working ok with projects running from my d drive and viewing localhost.

All of a sudden it stopped working and I could only change things and then ftp to see the changes.

Its not a hardship running from c drive now as I can change things and check them before ftp.

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=89281&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' />