Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get a "Call to a member function export() on a non-object" error. #12

Closed
mewben opened this issue Jan 24, 2014 · 13 comments
Closed

I get a "Call to a member function export() on a non-object" error. #12

mewben opened this issue Jan 24, 2014 · 13 comments

Comments

@mewben
Copy link
Contributor

mewben commented Jan 24, 2014

Just installed this now, somehow I got this error "Call to a member function export() on a non-object" on the first example usage:

Excel::create('ExcelName')
        ->sheet('SheetName')
            ->with(array('data', 'data'))
        ->export('xls');
@MaatwebsiteSupport
Copy link
Contributor

Hey

Just tested your code. Works fine here.

I assume PHPOffice/PHPExcel is correctly installed in your vendor folder?

@mewben
Copy link
Contributor Author

mewben commented Jan 24, 2014

Yes... Before I installed your package, composer shows an error that I cannot install your package since phpoffice/phpexcel is not stable enough. So I set my composer.json minimum-stability to dev and it installed fine.. Then I tried to run the first usage example in my routes.php. That is where I got this error.. Thanks for the reply by the way..

@mewben
Copy link
Contributor Author

mewben commented Jan 24, 2014

Oops.. Sorry My bad.. syntax error... I forgot to put > in ->with(array('data', 'data'))... Sorry again.. Btw, is it possible to change the minimum stability of your package to stable?

@mewben mewben closed this as completed Jan 24, 2014
@MaatwebsiteSupport
Copy link
Contributor

Hey, I changed to minimum stability to stable.

@mewben
Copy link
Contributor Author

mewben commented Jan 24, 2014

I changed back my composer.json minimum stability to stable and I got this error.
image

@MaatwebsiteSupport
Copy link
Contributor

Could you try to reinstall all vendor packages, by removing the composer.lock and vendor folder and doing a composer install?

@mewben
Copy link
Contributor Author

mewben commented Jan 26, 2014

In fact, I also tried the package with fresh install of Laravel.. I get the same error.. Hmmm..

@mewben mewben reopened this Jan 26, 2014
@MaatwebsiteSupport
Copy link
Contributor

I changed it back to dev, untill I find out why it throws the error.

@mewben
Copy link
Contributor Author

mewben commented Jan 27, 2014

Okay thanks.. :)

@MaatwebsiteSupport
Copy link
Contributor

I'm guessing it has to do with the stability of the PHPExcel package. Don't think I can change it to stable right now.

@mewben
Copy link
Contributor Author

mewben commented Jan 27, 2014

Strange... But i can install phpoffice/phpexcel: dev-master package separately without errors using minimum-stability: stable...

@MaatwebsiteSupport
Copy link
Contributor

You should be able to install the package with an app minimum stability of stable now.

@mewben
Copy link
Contributor Author

mewben commented Feb 4, 2014

Sorry, I still can't install even using fresh install of Laravel 4.1... :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants