Open amansaini25 opened 8 months ago
Hi, thanks for this amazing project!
I've used your template to deploy my wordpress website on netlify but got an error mentioned below:
5:33:38 PM: Netlify Build 5:33:38 PM: ──────────────────────────────────────────────────────────────── 5:33:38 PM: 5:33:38 PM: ❯ Version 5:33:38 PM: @netlify/build 29.36.0 5:33:38 PM: 5:33:38 PM: ❯ Flags 5:33:38 PM: baseRelDir: true 5:33:38 PM: buildId: 65e709f7c14acb05dabc4343 5:33:38 PM: deployId: 65e709f7c14acb05dabc4345 5:33:38 PM: 5:33:38 PM: ❯ Current directory 5:33:38 PM: /opt/build/repo 5:33:38 PM: 5:33:38 PM: ❯ Config file 5:33:38 PM: /opt/build/repo/netlify.toml 5:33:38 PM: 5:33:38 PM: ❯ Context 5:33:38 PM: production 5:33:38 PM: 5:33:38 PM: build.command from netlify.toml 5:33:38 PM: ──────────────────────────────────────────────────────────────── 5:33:38 PM: 5:33:38 PM: $ python ss_script.py 5:33:39 PM: Failed during stage "building site": Build script returned non-zero exit code: 2 5:33:39 PM: Traceback (most recent call last): 5:33:39 PM: File "ss_script.py", line 67, in 5:33:39 PM: ss_zip_obj.create_project( 5:33:39 PM: File "/opt/build/repo/src/staticwordpress/core/workflow.py", line 162, in create_project 5:33:39 PM: self._project.update_ss() 5:33:39 PM: File "/opt/build/repo/src/staticwordpress/core/project.py", line 164, in update_ss 5:33:39 PM: self.src_url + CONFIGS["SIMPLYSTATIC"]["API"], 5:33:39 PM: TypeError: unsupported operand type(s) for +: "NoneType" and "str" 5:33:39 PM: 5:33:39 PM: "build.command" failed 5:33:39 PM: ──────────────────────────────────────────────────────────────── 5:33:39 PM: 5:33:39 PM: Error message 5:33:39 PM: Command failed with exit code 1: python ss_script.py (https://ntl.fyi/exit-code-1) 5:33:39 PM: 5:33:39 PM: Error location 5:33:39 PM: In build.command from netlify.toml: 5:33:39 PM: python ss_script.py 5:33:39 PM: 5:33:39 PM: Resolved config 5:33:39 PM: build: 5:33:39 PM: command: python ss_script.py 5:33:39 PM: commandOrigin: config 5:33:39 PM: publish: /opt/build/repo/output 5:33:39 PM: publishOrigin: config 5:33:39 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 5:33:39 PM: Failing build: Failed to build site 5:33:39 PM: Finished processing build request in 23.973s
I've used exactly same process mentioned in your video.
Can you please check wordpress API in you netlify configurations? Looks like you did not specify it.
where do you specify it?
Hi, thanks for this amazing project!
I've used your template to deploy my wordpress website on netlify but got an error mentioned below:
5:33:38 PM: Netlify Build
5:33:39 PM: ss_zip_obj.create_project(
5:33:39 PM: File "/opt/build/repo/src/staticwordpress/core/workflow.py", line 162, in create_project
5:33:39 PM: self._project.update_ss()
5:33:39 PM: File "/opt/build/repo/src/staticwordpress/core/project.py", line 164, in update_ss
5:33:39 PM: self.src_url + CONFIGS["SIMPLYSTATIC"]["API"],
5:33:39 PM: TypeError: unsupported operand type(s) for +: "NoneType" and "str"
5:33:39 PM:
5:33:39 PM: "build.command" failed
5:33:38 PM: ──────────────────────────────────────────────────────────────── 5:33:38 PM: 5:33:38 PM: ❯ Version 5:33:38 PM: @netlify/build 29.36.0 5:33:38 PM: 5:33:38 PM: ❯ Flags 5:33:38 PM: baseRelDir: true 5:33:38 PM: buildId: 65e709f7c14acb05dabc4343 5:33:38 PM: deployId: 65e709f7c14acb05dabc4345 5:33:38 PM: 5:33:38 PM: ❯ Current directory 5:33:38 PM: /opt/build/repo 5:33:38 PM: 5:33:38 PM: ❯ Config file 5:33:38 PM: /opt/build/repo/netlify.toml 5:33:38 PM: 5:33:38 PM: ❯ Context 5:33:38 PM: production 5:33:38 PM: 5:33:38 PM: build.command from netlify.toml
5:33:38 PM: ──────────────────────────────────────────────────────────────── 5:33:38 PM: 5:33:38 PM: $ python ss_script.py 5:33:39 PM: Failed during stage "building site": Build script returned non-zero exit code: 2 5:33:39 PM: Traceback (most recent call last): 5:33:39 PM: File "ss_script.py", line 67, in
5:33:39 PM: ──────────────────────────────────────────────────────────────── 5:33:39 PM: 5:33:39 PM: Error message 5:33:39 PM: Command failed with exit code 1: python ss_script.py (https://ntl.fyi/exit-code-1) 5:33:39 PM: 5:33:39 PM: Error location 5:33:39 PM: In build.command from netlify.toml: 5:33:39 PM: python ss_script.py 5:33:39 PM: 5:33:39 PM: Resolved config 5:33:39 PM: build: 5:33:39 PM: command: python ss_script.py 5:33:39 PM: commandOrigin: config 5:33:39 PM: publish: /opt/build/repo/output 5:33:39 PM: publishOrigin: config 5:33:39 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 5:33:39 PM: Failing build: Failed to build site 5:33:39 PM: Finished processing build request in 23.973s
I've used exactly same process mentioned in your video.