Setup starts "not Found"

When trying to install invoiceplane on server (centos), it doesn’t start at all but only throws a blank page with …requested URL not found.
I enabled HTTPS
I enabled folder
However,
if I type in the path without setup in the end, then the path changes to display “welcome” at the path end with the same message, requested URL not found.
Anything I’d missed

Can you post the actual path (hide the domain name if you wish).

Hi crafter, thanks for your reply.
https://mydomain.com.au/folder/ip/

I tried to place everything into the root, too, but it’s the same result (not found)
double checked everything again, like ipconfig.php, etc., all should be fine.

That being said, I am confused where the software picks up the setup, because in the package there is no setup file nor a setup folder. Possible that the setup folder is completely missing from the package I downloaded on https://invoiceplane.com/ (v1.5.9) ?

Added:
Discovered that the htaccess is without a dot so I changed it to .htaccess. That didn’t do anything neither. Still keep getting a “not found” error. Definitely something missing in the download folder, I’d say at this point in time since I exhausted every possibility to get setup started.

Added:
Found this post https://community2.invoiceplane.com/t/topic/2889/2 and tried any possible variation but to no avail, neither.

Starting to roll now, not my eyes but, eyebrows.

Does this work

Hi crafter, thanks for your reply.
https://mydomain.com.au/folder/ip/index.php

Nope, nothing, I tried every possibility, spent the whole night and morning researching but have not found any hint on what causes it.

I even commented out my original htaccess entry, like;

#RewriteEngine on

#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}.php -f
#RewriteRule ^(.*)$ $1.php
#RewriteRule ^([a-z]+)/?$ $1.php [NC]

#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}.html -f
#RewriteRule ^(.*)$ $1.html
#RewriteRule ^([a-z]+)/?$ $1.html [NC]

thinking it may interfere, but still all the same. Such a shame, I really like the software.

BTW, If I punch in:
https://www.mydomain.com.au/subfolder/ip/index.php
it changes the path to:
https://www.mydomain.com.au/subfolder/welcome

which means (if I’m not wrong) it accepts the index.php but the index.php can’t get the files it should, like:
vendor/autoload.php
Meaning again, something is wrong with the base_url. BUT, I tried there different options already, too. It must be something I didn’t discover yet.

ANYway:
my path to where I have the ‘ip’ folder is:
https://mydomain.com.au/folder/ip/

In:

/application/config/config.php
I changed the base_url to:
Preformatted text$config[‘base_url’] = “https://mydomain.com.au/folder/”;
and also tried:
Preformatted text$config[‘base_url’] = ‘https://mydomain.com.au/folder/’;
And then I get a whole list of errors:


Notice : Undefined index: log_path in /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php on line 127

Notice : Undefined index: log_path in /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php on line 127

Warning : mkdir(): Invalid path in /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php on line 131

Notice : Undefined index: log_threshold in /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php on line 138

Notice : Undefined index: log_threshold in /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php on line 142

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant ‘base_url’ - assumed ‘‘base_url’’

Filename: config/config.php

Line Number: 59

Backtrace:

File: /home/domain/public_html/asubfolder/ip/application/config/config.php
Line: 59
Function: _error_handler

File: /home/domain/public_html/asubfolder/ip/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php:127)

Filename: core/Security.php

Line Number: 282

Backtrace:

File: /home/domain/public_html/asubfolder/ip/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php:127)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/domain/public_html/asubfolder/ip/application/third_party/MX/Loader.php
Line: 209
Function: _ci_load_library

File: /home/domain/public_html/asubfolder/ip/application/core/Base_Controller.php
Line: 45
Function: library

File: /home/domain/public_html/asubfolder/ip/application/core/User_Controller.php
Line: 29
Function: __construct

File: /home/domain/public_html/asubfolder/ip/application/core/Admin_Controller.php
Line: 26
Function: __construct

File: /home/domain/public_html/asubfolder/ip/index.php
Line: 325
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/asubfolder/ip/vendor/codeigniter/framework/system/core/Log.php:127)

Filename: helpers/url_helper.php

Line Number: 564

Backtrace:

File: /home/domain/public_html/asubfolder/ip/application/core/Base_Controller.php
Line: 50
Function: redirect

File: /home/domain/public_html/asubfolder/ip/application/core/User_Controller.php
Line: 29
Function: __construct

File: /home/domain/public_html/asubfolder/ip/application/core/Admin_Controller.php
Line: 26
Function: __construct

File: /home/domain/public_html/asubfolder/ip/index.php
Line: 325
Function: require_once


Guess my guess with the base_url is a real issue here. ?!

O M G,
who’d have ever thought that?

I exhausted my last bet and went through each and every single file to ascertain the correct file chmod of 0644, within cPanel

Didn’t work. Of course.

Then I used SSH and command line to set chmod value of 0644 for every file.

Voila!

As I said, who’d have thought! That’s all it took.
You may want to take note of this for future similar cases.

CHMOD I used to correct file permission was:

# find /home/yourdomain/public_html/folder_of_ip_installation -type f -exec chmod -v 0644 '{}' \;

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.