Notion2Web icon indicating copy to clipboard operation
Notion2Web copied to clipboard

error Attempt to read property "objectType" on null

Open luisgarcia1010 opened this issue 3 years ago • 5 comments

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?

luisgarcia1010 avatar Apr 07 '22 12:04 luisgarcia1010

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

VanDerLars avatar Apr 07 '22 12:04 VanDerLars

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

luisgarcia1010 avatar Apr 07 '22 12:04 luisgarcia1010

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

VanDerLars avatar Apr 07 '22 12:04 VanDerLars

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

ok thanks, i will wait for your reply

luisgarcia1010 avatar Apr 07 '22 12:04 luisgarcia1010

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?

luisgarcia1010 avatar Apr 10 '22 13:04 luisgarcia1010