Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize error on first use of console #14

Closed
hegi108 opened this issue Jul 13, 2017 · 6 comments
Closed

Initialize error on first use of console #14

hegi108 opened this issue Jul 13, 2017 · 6 comments
Assignees
Labels

Comments

@hegi108
Copy link

hegi108 commented Jul 13, 2017

The gallery is up on my server and so I wanted to call it for the very first time:
http://www.raccourci.ch/Testseiten/gallery/console/
what returns the following error message:
Error initializing file: \CLUFS01\WEBST01\12293\wwwroot\Testseiten\gallery\console\php/../../data/login-message.html
(there is a ~ before and after the term "data")

What's gone wrong? What should I do?

@hegi108
Copy link
Author

hegi108 commented Jul 13, 2017

Sorry, that looks wrong!
There is a ~ before and after the term "data"

@dpilafian dpilafian added the bug label Jul 13, 2017
@dpilafian dpilafian self-assigned this Jul 13, 2017
@dpilafian
Copy link
Member

dpilafian commented Jul 14, 2017

Dev note...

Adding Microsoft Windows support for the server-side:
https://stackoverflow.com/a/43582590

function normalize(path) {
   return str_replace("/", DIRECTORY_SEPARATOR, path);
   }

@hegi108
Copy link
Author

hegi108 commented Jul 15, 2017

Thanks.
Do I have to add this statement myself? If yes: where?
I downloaded it again from https://github.com/center-key/paradise but it ends with the same error.
I'm using Dreamweaver CC 2017 as ftp on a Windows 64Bit System.

@hegi108 hegi108 closed this as completed Jul 15, 2017
@hegi108 hegi108 reopened this Jul 15, 2017
@hegi108
Copy link
Author

hegi108 commented Jul 15, 2017

Sorry again - I didn't want to close it!!!!!

@dpilafian
Copy link
Member

Sorry for the confusion... the "Dev note" about creating a normalize function is just a research note about how to fix the error you encountered. I will update the code shortly and push out a new version that will hopefully fix the problem.

@dpilafian
Copy link
Member

dpilafian commented Jul 18, 2017

The slashes issue looks to be red herring:
https://stackoverflow.com/a/4178279

The Error initializing file: problem is most likely a permissions issue. Usually when you FTP the Paradise files up to your web server, the file ownership and permissions are set appropriately.

If you if copied the files directly to the file system, the permissions need to be set so that PHP can create folders and write files.

On Linux systems, the commands to manually set write permissions would look something like:

$ cd Testseiten
$ ls -l
$ chmod a+w -R gallery

I'm not too familiar with Microsoft Windows, but it looks like icacls is the command to use:
https://superuser.com/a/318176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants