Coder Social home page Coder Social logo

Comments (8)

hillelcoren avatar hillelcoren commented on May 21, 2024

I should remove that code, it came with Confide but it can't be used to create a user.

A user and account record should automatically be created for you when you click 'Invoice Now' on the home page.

from invoiceninja.

hardikdangar avatar hardikdangar commented on May 21, 2024

invoice now button doesn't work somehow. when i click it does nothing. i checked the live site it opens the invoice page.

looks like bower didn't install something. it complained to me that it is confused about which jquery version to use. it provided me options like jquery 1.8, 1.9, 2.0 ( don't remember the exact details) but i chose the 1.x option

that could be the problem ?

from invoiceninja.

cristoslc avatar cristoslc commented on May 21, 2024

I've installed a test on my server but when I click on "Invoice Now", nothing happens for me either. Same problem with Bower install, but I took one of the packages that resolved to 2.1.x instead of a 1.x option.
What is the appropriate jQuery package to install?

from invoiceninja.

hillelcoren avatar hillelcoren commented on May 21, 2024

I've always used a 1.x version of jQuery so that could be the issue. I've also heard from other people that the DebugBar library was causing issues. I'd suggest checking your browser console for errors.

You can test the site without the debugbar by setting debug to false in app/config/app.php. To remove it completely remove the references from app/config/app.php and composer.json and run a composer update. I'm looking into the root of the problem.

from invoiceninja.

cristoslc avatar cristoslc commented on May 21, 2024

Disabling debugging seems to have done it. Firebug console suggests the issue was related to interference with jquery (e.g., got "$ not declared" in log), but I was able to successfully use the site with both jquery#1.9.1 and jquery#2.1.0 after disabling debugging in app/config/app.php.

Let me know if you would like a more detailed bug report and I can put together some screenshots of my firebug console while the issue is occurring.

from invoiceninja.

hillelcoren avatar hillelcoren commented on May 21, 2024

@cristoslc

Thanks, good to hear it's working. I don't think we need screenshots, the problem is understood.

@hardikdangar

Is the site working for you?

from invoiceninja.

Djyp avatar Djyp commented on May 21, 2024

Hi and thanks everyone for your feedbacks.

I tried different versions of jQuery and I finally found out that the error came from the views...
In master.blade.php, line 22 there's :

<script src="{{ asset('vendor/jquery/jquery.min.js') }}" type="text/javascript"></script>

The downloaded jQuery package was more like :

<script src="{{ asset('vendor/jquery/dist/jquery.min.js') }}" type="text/javascript"></script>

There's a /dist folder... So chrome just didn't know how to interpet the $ function

Hope this is helping

from invoiceninja.

hillelcoren avatar hillelcoren commented on May 21, 2024

I believe I've tracked down this problem. Depending on which version of jquery is chosen during the Bower install the dist folder may (or may not) exists.

I've added a resolutions section to bower.json which should prevent this from happening.

from invoiceninja.

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.