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

Problem locating class #3

Open
armababy opened this issue Jan 16, 2013 · 4 comments
Open

Problem locating class #3

armababy opened this issue Jan 16, 2013 · 4 comments

Comments

@armababy
Copy link

Hello,

I don't know if it's my application issue or Multup so i just ask.

After downloading Multup and enabling it in bundles.php i get this error in my model when i try to use bundle:

Class 'Multup' not found

I have tried to

use Multup;

But nothing changes.

For example i use CRUD and Sentry bundles in my modules with no problem when i use proper namespaces.

What could be the problem?

@sketchynix
Copy link
Member

Hi,
Won't have time until later this week to look into this, but what version of PHP are you on and what server type (linux/windows/etc)?

-Nick

@armababy
Copy link
Author

Hey,

I run PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) on ubuntu 12.04.1 LTS

Meanwhile i will try to poke around code and see if i can locate problem, maybe it's my laravel setup.
Edit: Tried to use Resizer bundle and it worked fine.

@janhartigan
Copy link
Member

Hey @armababy,

My first guess would be that this has something to do with the bundle not being loaded correctly. Can you paste your bundles.php? Also if you throw a die('test') in the bundle's start.php, it will let you know whether or not the bundle's being loaded properly. Let me know!

@armababy
Copy link
Author

Hey @janhartigan,

Here's my bundles.php

return array(
    'crud',
    'swiftmailer',
    'nesty'      => array('auto' => true),
    'sentry'     => array('auto' => true),
    'theme'      => array('auto' => true),
    'filesystem' => array('auto' => true),

    // Voto stuff
    'profile'    => array('auto' => true, 'handles'   => 'profile'),
    'restaurant' => array('auto' => true, 'handles'   => 'restaurant'),
    'multup'     => array('auto' => true),
    'resizer'    => array('auto' => true)
);

I could not test die statement because of that Class not found.
But what i did is i tested this:var_dump(Bundle::started('Multup'));
Witch returned true

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

3 participants