Giter Club home page Giter Club logo

Comments (11)

quickapps avatar quickapps commented on June 27, 2024

Are you getting a 404 response after form submitted ?

The ordering save process (when you click "Save changes") is performed using Ajax. If you are getting a page refresh after click the save button then is caused by some JS/broser problem. In that case I'll need to know which browser are you using in order to try to reproduce this issue.

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

Yes, I was getting a 404 error in Chrome and Firefox on a Mac.

from cms.

quickapps avatar quickapps commented on June 27, 2024

I've just tested both browsers on Windows and all seems to work okay.
Could you try to determinate which is the JS error using FF's console ? because I have not a Mac OS right now to reproduce your environment.

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

I won't be able to get to my environment until after the weekend. I will definitely take a look and respond asap though.

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

Here is the error from FF:

"NetworkError: 404 Not Found - http://localhost/quickapps/quickapps/admin/menu/manage/links/main-menu"

Here is the error from Chrome console:

. POST http://localhost/quickapps/quickapps/admin/menu/manage/links/main-menu 404 (Not Found)
. f.support.ajax.f.ajaxTransport.sendjquery.js:4

. f.extend.ajaxjquery.js:4

. (anonymous function)main-menu:101
. f.event.dispatchjquery.js:3

. f.event.add.h.handle.i

from cms.

quickapps avatar quickapps commented on June 27, 2024

I think your QuickApps installation up to date ?
A similar issue was fixed here:
d8d05ec

Update your QuickApps folder to the latest available according to your branch.

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

Yes, my QuickApps installation is the most current 1.0. I just downloaded Friday.

I just want to say that I really like what you have done with QuickApps. Thanks.

from cms.

quickapps avatar quickapps commented on June 27, 2024

Thanks!,

Well the error message is really clear, the url "http://localhost/quickapps/quickapps/admin/menu/manage/links/main-menu" does not exists.

I assume that your QACMS installation is on your "quickapps" directory right? [1]
So the problem is the duplicated word in the url: /quickapps/quickapps/


Check the generated HTML code in your browser, and find the QuickApps.settings.url JS variable:

  Query.extend(QuickApps.settings, {
      "url": "http://localhost/quickapps/quickapps",
  ...

if there is a double "quickapps" word means that somethings is wrong with the value of this JS variable (assuming [1]).
This JS variable is defined on QuickAppsComponent::prepareContent() line 191:

 (defined('FULL_BASE_URL') ? FULL_BASE_URL . $this->Controller->here : $this->Controller->here)

I believe that something in your enviroment is producing and incorrect value for this JS variable.

  • What is the value of $this->Controller->here ?
  • Is the constant FULL_BASE_URL defined ? its value ?
  • What value do you get from this: env('HTTP_HOST') ?

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

I opened up QuickAppsComponent.php.

Line 191 was this:
"url": "' . Router::url($this->Controller->here, true) . '",

Changed to:
"url": "' . (defined('FULL_BASE_URL') ? FULL_BASE_URL . $this->Controller->here : $this->Controller->here) . '",

Works now.

Thanks, sorry for any trouble.

from cms.

quickapps avatar quickapps commented on June 27, 2024

Great! :)

(I recommend you to update your QuickApps directory)

from cms.

wkwolff avatar wkwolff commented on June 27, 2024

Will do and thanks for your help!

Really appreciate it.

from cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.