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

error Attempt to read property "objectType" on null #2

Open
luisgarcia1010 opened this issue Apr 7, 2022 · 5 comments
Open

error Attempt to read property "objectType" on null #2

luisgarcia1010 opened this issue Apr 7, 2022 · 5 comments

Comments

@luisgarcia1010
Copy link

I made a full export of notion in html format, unpacked the archive on the server, launched it through docker
docker run -d --name notion -p 127.0.0.1:88:80 -v /storage/notion:/var/www/html/content vanderlars/notion2web

got an error at the beginning

[Thu Apr 07 12:09:10.965203 2022] [proxy_fcgi:error] [pid 69:tid 140148406744832] [client 127.0.0.1:58942] AH01071: Got error 'PHP message: PHP Warning:  include(/var/www/html/app/functions.php): Failed to open stream: Permission denied in /var/www/html/index.php on line 8PHP message: PHP Warning:  include(): Failed opening 'app/functions.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/index.php on line 8PHP message: PHP Fatal error:  Uncaught Error: Class "N2webFolderItem" not found in /var/www/html/index.php:11\nStack trace:\n#0 {main}\n  thrown in /var/www/html/index.php on line 11'

fixed app/functions.php file - chmod 644 app/functions.php

check
curl -I -XGET 127.0.0.1:88

but now i get another error

NOTICE: PHP message: PHP Warning:  Undefined array key 5 in /var/www/html/app/functions.php on line 234
NOTICE: PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234
NOTICE: PHP message: PHP Fatal error:  Uncaught  --> Smarty: unable to write file /var/www/html/app/smarty/compile/wrt624ed639549d59_81059506 <--
  thrown in /var/www/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 60
[php-fpm:access] 127.0.0.1 -  07/Apr/2022:12:16:00 +0000 "GET /index.php" 500 /var/www/html/index.php 56644.495 512268 41.29%
[Thu Apr 07 12:16:57.348323 2022] [proxy_fcgi:error] [pid 69:tid 140148373174016] [client 127.0.0.1:58962] AH01071: Got error 'Undefined array key 1 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 32 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 2 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 1 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 1 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 1 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Undefined array key 5 in /var/www/html/app/functions.php on line 234PHP message: PHP Warning:  Attempt to read property "objectType" on null in /var/www/html/app/functions.php on line 234PHP message: PHP Fatal error:  Uncaught  --> Smarty: unable to write file /var/www/html/app/smarty/compile/wrt624ed639549d59_81059506 <-- \n  thrown in /var/www/html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php on line 60'
127.0.0.1 - - [07/Apr/2022:12:16:00 +0000] "GET / HTTP/1.1" 500 185 "-" "curl/7.64.0"

Can you tell me how to fix it or am I doing something wrong?

@VanDerLars
Copy link
Owner

Hm, strange. Doesn't happen, when I use it.
I'll look into that later that day. Which docker image did you use?

@luisgarcia1010
Copy link
Author

Hm, strange. Doesn't happen, when I use it. I'll look into that later that day. Which docker image did you use?

I took the last image
docker pull vanderlars/notion2web

vanderlars/notion2web latest e43eec994ab4 6 weeks ago 1.08GB

@VanDerLars
Copy link
Owner

okay, thanks. I'll test it today evening and come back to you asap.

@luisgarcia1010
Copy link
Author

okay, thanks. I'll test it today evening and come back to you asap.

ok thanks, i will wait for your reply

@luisgarcia1010
Copy link
Author

okay, thanks. I'll test it today evening and come back to you asap.

sorry to bother you, but was there time to test the bug?

@ghost ghost mentioned this issue Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants