Request could not be processed #20

Open
opened 2024-05-27 18:40:22 +00:00 by skeetmo · 8 comments

What Happened?

There has been an error
For some reason your request could not be processed at this time.

Steps to reproduce the Bug

https://injn.org/bible

Which Joomla version are you using?

Joomla 5

v5.x

Which PHP version are you using?

PHP 8.1

Which Apache version are you using?

Apache 2.4

Where did this issue occur?

App(site_vew)

On which browsers did you encounter the issue?

Chrome

What operating system are you currently using?

Linux

Additional Comments

No response

### What Happened? There has been an error For some reason your request could not be processed at this time. ### Steps to reproduce the Bug https://injn.org/bible ### Which Joomla version are you using? Joomla 5 ### Which GetBible/joomla-component version is this issue related to? v5.x ### Which PHP version are you using? PHP 8.1 ### Which Apache version are you using? Apache 2.4 ### Where did this issue occur? App(site_vew) ### On which browsers did you encounter the issue? Chrome ### What operating system are you currently using? Linux ### Additional Comments _No response_
skeetmo added the
bug
label 2024-05-27 18:40:22 +00:00
skeetmo changed title from [BUG]: Request could not be processed to Request could not be processed 2024-05-27 18:46:20 +00:00
Owner

I will need more information to understand what your seeing. Please give screenshots and more details as to when and where this is happening. If I can not reproduce the bug... I can't fix it.

I will need more information to understand what your seeing. Please give screenshots and more details as to when and where this is happening. If I can not reproduce the bug... I can't fix it.
Author

Thank you for getting back to me. It seems like it started last Thursday or Friday. No updates or changes to our system during that time. I provided a link to our site in the above request that shows the error. (https://injn.org/bible) I have deleted and reinstalled the component to no avail. We are also getting an error on the backside from the component wiki link that has an error of "Invalid response received from API".

Thank you for getting back to me. It seems like it started last Thursday or Friday. No updates or changes to our system during that time. I provided a link to our site in the above request that shows the error. (https://injn.org/bible) I have deleted and reinstalled the component to no avail. We are also getting an error on the backside from the component wiki link that has an error of "Invalid response received from API".
Owner

The API error should be okay to ignore for now... since it will just load documentation on the back-end in the future. As for the second image, where on your website is this, on that Bible App page, or is it one of the modules, if a module what it the current module settings? if the Bible App page, what Bibles have you installed? what is your default Bible? all these details can be set in the GetBible component global options area.

The API error should be okay to ignore for now... since it will just load documentation on the back-end in the future. As for the second image, where on your website is this, on that Bible App page, or is it one of the modules, if a module what it the current module settings? if the Bible App page, what Bibles have you installed? what is your default Bible? all these details can be set in the GetBible component global options area.
Author

Yes, this is on the Bible app page. Since my last message I fully removed the Bible app, tables and reinstalled. I'm still receiving the same message and it won't let me install any translations. The Default "kjv" translation is the only one I had installed from before. Thank you again for your help!! :-)

Yes, this is on the Bible app page. Since my last message I fully removed the Bible app, tables and reinstalled. I'm still receiving the same message and it won't let me install any translations. The Default "kjv" translation is the only one I had installed from before. Thank you again for your help!! :-)
Owner

Are you seeing a message like this:
image

I just tested the component on Joomla 5.1 and it worked, and that inside the official Joomla Docker container, which in simple terms means inside a correctly setup system.

With the little information you have given me I can't really help you. We have this same package running on https://getBible.net and we are not having any issues.

If you would like me to be of more help, you will need to give me more information, just saying that something does not work, is not enough :)

Give attention to the PHP configuration details, make sure your using the latest package, make sure that your system can access the API: https://api.getbible.net/v2/kjv/62/3.json (example api call) Make sure that you have legacy plugin in Joomla turned on, as this package still needs it... you know I can mention many things you should check and the list can be very long, and for that reason I need more information to try and narrow it down to a shorter list. At this point the best I can do is tell you that on our side the package is still working.

Are you seeing a message like this: ![image](https://git.vdm.dev/attachments/9ed3ce36-ddb3-4631-b331-b0a4c938435a) I just tested the component on Joomla 5.1 and it worked, and that inside the official Joomla Docker container, which in simple terms means inside a correctly setup system. With the little information you have given me I can't really help you. We have this same package running on https://getBible.net and we are not having any issues. If you would like me to be of more help, you will need to give me more information, just saying that something does not work, is not enough :) Give attention to the PHP configuration details, make sure your using the latest package, make sure that your system can access the API: https://api.getbible.net/v2/kjv/62/3.json (example api call) Make sure that you have legacy plugin in Joomla turned on, as this package still needs it... you know I can mention many things you should check and the list can be very long, and for that reason I need more information to try and narrow it down to a shorter list. At this point the best I can do is tell you that on our side the package is still working.
184 KiB
Owner

Here is a picture of the front-end of the website I just tested it on:
image

That worked without installing any Bibles, now I will install the Afrikaans translation, just to see how it works:

At the beginning:
image

Some part of the way (it works perfectly as expected)
image

This is the docker composer file I used to setup my testing system:

version: '2'
services:
  mariadbbible:
    image: mariadb:latest
    container_name: mariadbbible
    restart: unless-stopped
    environment:
      - MARIADB_DATABASE=${VDM_BIBLE_DB}
      - MARIADB_USER=${VDM_BIBLE_DB_USER}
      - MARIADB_PASSWORD=${VDM_BIBLE_DB_PASS}
      - MARIADB_ROOT_PASSWORD=${VDM_BIBLE_DB_ROOT}
    volumes:
      - "${VDM_PROJECT_PATH}/bible/db:/var/lib/mysql"
    networks:
      - traefik
  joomlabible:
    image: joomla:5.1
    container_name: joomlabible
    restart: unless-stopped
    environment:
      - APACHE_RUN_USER=${VDM_BIBLE_PUID}
      - APACHE_RUN_GROUP=${VDM_BIBLE_PGID}
      - JOOMLA_DB_HOST=mariadbbible:3306
      - JOOMLA_DB_NAME=${VDM_BIBLE_DB}
      - JOOMLA_DB_USER=${VDM_BIBLE_DB_USER}
      - JOOMLA_DB_PASSWORD=${VDM_BIBLE_DB_PASS}
      - JOOMLA_DB_TYPE=${VDM_BIBLE_JOOMLA_DB_TYPE}
      - JOOMLA_DB_PREFIX=${VDM_BIBLE_JOOMLA_DB_PREFIX}
      - JOOMLA_SITE_NAME=${VDM_BIBLE_JOOMLA_SITE_NAME}
      - JOOMLA_ADMIN_USERNAME=${VDM_BIBLE_JOOMLA_ADMIN_USERNAME}
      - JOOMLA_ADMIN_USER=${VDM_BIBLE_JOOMLA_ADMIN_USER}
      - JOOMLA_ADMIN_EMAIL=${VDM_BIBLE_JOOMLA_ADMIN_EMAIL}
      - JOOMLA_ADMIN_PASSWORD=${VDM_BIBLE_JOOMLA_ADMIN_PASSWORD}
    depends_on:
      - mariadbbible
    volumes:
      - "${VDM_PROJECT_PATH}/bible/joomla:/var/www/html"
      - "${VDM_PROJECT_PATH}/bible/php.ini:/var/www/html/php.ini"
    networks:
      - traefik
    labels:
      # joomla
      - "traefik.enable=true"
      - "traefik.http.routers.joomlabible.rule=Host(`bible.agi.vdm`)"
  phpmyadminbible:
    image: phpmyadmin/phpmyadmin
    container_name: phpmyadminbible
    restart: unless-stopped
    environment:
      PMA_HOST: mariadbbible
      PMA_PORT: 3306
      UPLOAD_LIMIT: 300M
    depends_on:
      - mariadbbible
    networks:
      - traefik
    labels:
      # phpmyadmin
      - "traefik.enable=true"
      - "traefik.http.routers.phpmyadminbible.rule=Host(`bibledb.agi.vdm`)"
networks:
  traefik:
    external: true
    name: traefik_webgateway

This is the .env file details:

VDM_PROJECT_PATH="/home/USERNAME/Development/Projects"
VDM_BIBLE_PUID="#1000"
VDM_BIBLE_PGID="#1000"
VDM_BIBLE_DB="vdm_io"
VDM_BIBLE_DB_USER="vdm_user"
VDM_BIBLE_DB_PASS="3mkL54xdMBc7JDoM4Tti"
VDM_BIBLE_DB_ROOT="4zsWVRYvPhDUaeuQfYq2CbtRA32ojEzNHtfpyAUy"
VDM_BIBLE_JOOMLA_DB_TYPE="mysqli"
VDM_BIBLE_JOOMLA_DB_PREFIX="bible_"
VDM_BIBLE_JOOMLA_SITE_NAME="Get Bible"
VDM_BIBLE_JOOMLA_ADMIN_USERNAME="llewellyn"
VDM_BIBLE_JOOMLA_ADMIN_USER="Llewellyn"
VDM_BIBLE_JOOMLA_ADMIN_EMAIL="admin@example.org"
VDM_BIBLE_JOOMLA_ADMIN_PASSWORD="poiuytrewqqqqqwertyuiop"

The treafik setup:

version: "3.3"

services:
  traefik:
    container_name: traefik
    image: "traefik:latest"
    command:
      - --entrypoints.web.address=:80
      - --entrypoints.websecure.address=:443
#      - --api.dashboard=true
#      - --api.insecure=true
      - --providers.docker
#      - --log.level=INFO
#      - --certificatesresolvers.vdmresolver.acme.httpchallenge=true
#      - --certificatesresolvers.vdmresolver.acme.keytype=RSA4096
#      - --certificatesresolvers.vdmresolver.acme.email=user@demo.com
#      - --certificatesresolvers.vdmresolver.acme.storage=/acme.json
#      - --certificatesresolvers.vdmresolver.acme.httpchallenge.entrypoint=web
#      - --providers.file.directory=/conf
#      - --providers.file.watch=true
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
#      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
#      - "${VDM_PROJECT_PATH}/traefik/conf:/conf"
#      - "${VDM_PROJECT_PATH}/traefik/acme.json:/acme.json"
#      - "${VDM_PROJECT_PATH}/traefik/errors:/errors"
#    labels:
      # settings for all containers
#      - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
#      - "traefik.http.routers.http-catchall.entrypoints=web"
#      - "traefik.http.routers.http-catchall.middlewares=redirect-to-me"
#      - "traefik.http.middlewares.redirect-to-me.redirectscheme.scheme=http"
    networks:
      - traefik

networks:
  traefik:
    name: traefik_webgateway
    external: true

This is the PHP.ini file of this system:

max_execution_time = 124
max_input_time = 1500
max_input_vars = 3000
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 256M

This is the package I used to install the Bible app: https://git.vdm.dev/getBible/joomla-pkg/archive/5.x.zip

I am using OctoJoom on my local development environment... this makes development and testing very easy.

Here is a picture of the front-end of the website I just tested it on: ![image](https://git.vdm.dev/attachments/8aad82b8-d346-4fc7-bd87-cc9113b5a190) That worked without installing any Bibles, now I will install the Afrikaans translation, just to see how it works: At the beginning: ![image](https://git.vdm.dev/attachments/94236f33-e9a5-429b-b860-becb935ffb61) Some part of the way (it works perfectly as expected) ![image](https://git.vdm.dev/attachments/3ac950f4-dd35-4636-afe4-18324d9b2bea) This is the docker composer file I used to setup my testing system: ``` version: '2' services: mariadbbible: image: mariadb:latest container_name: mariadbbible restart: unless-stopped environment: - MARIADB_DATABASE=${VDM_BIBLE_DB} - MARIADB_USER=${VDM_BIBLE_DB_USER} - MARIADB_PASSWORD=${VDM_BIBLE_DB_PASS} - MARIADB_ROOT_PASSWORD=${VDM_BIBLE_DB_ROOT} volumes: - "${VDM_PROJECT_PATH}/bible/db:/var/lib/mysql" networks: - traefik joomlabible: image: joomla:5.1 container_name: joomlabible restart: unless-stopped environment: - APACHE_RUN_USER=${VDM_BIBLE_PUID} - APACHE_RUN_GROUP=${VDM_BIBLE_PGID} - JOOMLA_DB_HOST=mariadbbible:3306 - JOOMLA_DB_NAME=${VDM_BIBLE_DB} - JOOMLA_DB_USER=${VDM_BIBLE_DB_USER} - JOOMLA_DB_PASSWORD=${VDM_BIBLE_DB_PASS} - JOOMLA_DB_TYPE=${VDM_BIBLE_JOOMLA_DB_TYPE} - JOOMLA_DB_PREFIX=${VDM_BIBLE_JOOMLA_DB_PREFIX} - JOOMLA_SITE_NAME=${VDM_BIBLE_JOOMLA_SITE_NAME} - JOOMLA_ADMIN_USERNAME=${VDM_BIBLE_JOOMLA_ADMIN_USERNAME} - JOOMLA_ADMIN_USER=${VDM_BIBLE_JOOMLA_ADMIN_USER} - JOOMLA_ADMIN_EMAIL=${VDM_BIBLE_JOOMLA_ADMIN_EMAIL} - JOOMLA_ADMIN_PASSWORD=${VDM_BIBLE_JOOMLA_ADMIN_PASSWORD} depends_on: - mariadbbible volumes: - "${VDM_PROJECT_PATH}/bible/joomla:/var/www/html" - "${VDM_PROJECT_PATH}/bible/php.ini:/var/www/html/php.ini" networks: - traefik labels: # joomla - "traefik.enable=true" - "traefik.http.routers.joomlabible.rule=Host(`bible.agi.vdm`)" phpmyadminbible: image: phpmyadmin/phpmyadmin container_name: phpmyadminbible restart: unless-stopped environment: PMA_HOST: mariadbbible PMA_PORT: 3306 UPLOAD_LIMIT: 300M depends_on: - mariadbbible networks: - traefik labels: # phpmyadmin - "traefik.enable=true" - "traefik.http.routers.phpmyadminbible.rule=Host(`bibledb.agi.vdm`)" networks: traefik: external: true name: traefik_webgateway ``` This is the .env file details: ``` VDM_PROJECT_PATH="/home/USERNAME/Development/Projects" VDM_BIBLE_PUID="#1000" VDM_BIBLE_PGID="#1000" VDM_BIBLE_DB="vdm_io" VDM_BIBLE_DB_USER="vdm_user" VDM_BIBLE_DB_PASS="3mkL54xdMBc7JDoM4Tti" VDM_BIBLE_DB_ROOT="4zsWVRYvPhDUaeuQfYq2CbtRA32ojEzNHtfpyAUy" VDM_BIBLE_JOOMLA_DB_TYPE="mysqli" VDM_BIBLE_JOOMLA_DB_PREFIX="bible_" VDM_BIBLE_JOOMLA_SITE_NAME="Get Bible" VDM_BIBLE_JOOMLA_ADMIN_USERNAME="llewellyn" VDM_BIBLE_JOOMLA_ADMIN_USER="Llewellyn" VDM_BIBLE_JOOMLA_ADMIN_EMAIL="admin@example.org" VDM_BIBLE_JOOMLA_ADMIN_PASSWORD="poiuytrewqqqqqwertyuiop" ``` The treafik setup: ``` version: "3.3" services: traefik: container_name: traefik image: "traefik:latest" command: - --entrypoints.web.address=:80 - --entrypoints.websecure.address=:443 # - --api.dashboard=true # - --api.insecure=true - --providers.docker # - --log.level=INFO # - --certificatesresolvers.vdmresolver.acme.httpchallenge=true # - --certificatesresolvers.vdmresolver.acme.keytype=RSA4096 # - --certificatesresolvers.vdmresolver.acme.email=user@demo.com # - --certificatesresolvers.vdmresolver.acme.storage=/acme.json # - --certificatesresolvers.vdmresolver.acme.httpchallenge.entrypoint=web # - --providers.file.directory=/conf # - --providers.file.watch=true restart: unless-stopped ports: - "80:80" - "443:443" # - "8080:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock # - "${VDM_PROJECT_PATH}/traefik/conf:/conf" # - "${VDM_PROJECT_PATH}/traefik/acme.json:/acme.json" # - "${VDM_PROJECT_PATH}/traefik/errors:/errors" # labels: # settings for all containers # - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)" # - "traefik.http.routers.http-catchall.entrypoints=web" # - "traefik.http.routers.http-catchall.middlewares=redirect-to-me" # - "traefik.http.middlewares.redirect-to-me.redirectscheme.scheme=http" networks: - traefik networks: traefik: name: traefik_webgateway external: true ``` This is the PHP.ini file of this system: ``` max_execution_time = 124 max_input_time = 1500 max_input_vars = 3000 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT upload_max_filesize = 256M post_max_size = 256M memory_limit = 256M ``` This is the package I used to install the Bible app: https://git.vdm.dev/getBible/joomla-pkg/archive/5.x.zip I am using [OctoJoom](https://git.vdm.dev/octoleo/octojoom) on my local development environment... this makes development and testing very easy.
254 KiB
255 KiB
254 KiB
Author

I receiving the following error: Access to fetch at 'https://api.getbible.net/v2//books.json' from origin 'https://injn.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Header set Access-Control-Allow-Origin: '*'

Any idea how I can correct this?

I receiving the following error: Access to fetch at 'https://api.getbible.net/v2//books.json' from origin 'https://injn.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Header set Access-Control-Allow-Origin: '*' Any idea how I can correct this?
Owner

So we are using this API on many websites/systems already and we don't get this issue.

Remove the double // from https://api.getbible.net/v2//books.json and add the Bible abbreviation of the version your calling so that its just https://api.getbible.net/v2/kjv/books.json

Also look at this JavaScript Project (Loader) if your planning to directly use the API, since it already works well as a proof of concept on many websites. The project allows you to add scripture in any part of your website by simple referencing the verses, here are examples.

So we are using this API on many websites/systems already and we don't get this issue. Remove the double `//` from `https://api.getbible.net/v2//books.json` and add the Bible abbreviation of the version your calling so that its just `https://api.getbible.net/v2/kjv/books.json` Also look at this [JavaScript Project (Loader)](https://git.vdm.dev/getBible/loader) if your planning to directly use the API, since it already works well as a proof of concept on many websites. The project allows you to add scripture in any part of your website by simple referencing the verses, [here are examples](https://getbible.net/loader).
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: getBible/support#20
No description provided.