Giter Club home page Giter Club logo

Comments (17)

dbu avatar dbu commented on August 15, 2024

hi,
can it be you have an old libxml? jackalope states "libxml version >= 2.7.0 (due to a bug in libxml http://bugs.php.net/bug.php?id=36501)" [1] - i remember we had problems like yours before using a newer libxml.

[1] https://github.com/jackalope/jackalope

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

Hi

Thank you for your suggestion.

I use Macports to keep all versions up-to-date. I ran an update and then checked the version.

When I ran
imac:~ barry$ port search libxml
I got the following:

libxml @1.8.17 (textproc)
XML parsing library

libxml2 @2.7.8 (textproc)
gnome xml library

and when I ran
imac:~ barry$ php -i | grep libxml
I got the following:

libxml Version => 2.7.8
libxml
libxml2 Version => 2.7.8

did you just upgrade your libxml version or did you have to do anything else as well?

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

i think i just updated libxml. (just to avoid funny things: are you sure the web browser and the console use the same version of libxml?)

and another thing, did you check what is running at the port you configured? if you have another service running there, it might reply with something that is not xml at all... what happens when you point your browser to the jackrabbit location? (hostname and port are in app/parameters.yml )

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

thanks dbu.

sorry to sound a bit dumb, but what is the easiest way to check the versions are being used?

and how to point the browser to jackrabbit location?

i am wondering if the if the ports are being used by more than one service but not sure how to check

Thanks

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

you can write a php file with just

<?
phpinfo();

in it. that will print the same as what you did on command line.

the adress you configured for jackrabbit is in app/parameters.yml of your cmf-sandbox checkout. usually its http://localhost:8080/server/
actually, running java -jar jackrabbit.jar might also say something if the port is blocked by something else. but i would still check with the browser.

from cmf-sandbox.

lsmith77 avatar lsmith77 commented on August 15, 2024

on the cli you can also do: php -i | grep libxml

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

thats what he did, lukas :-) i was suggesting maybe his web php is not using the same as the cli php.

do you have any other ideas what could be wrong? if its not one of those 2 i really don't know.

from cmf-sandbox.

lsmith77 avatar lsmith77 commented on August 15, 2024

hmm no .. well you could try the php builds from http://php-osx.liip.ch/ .. but i am not aware of issues with macports

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

Thanks for your help guys.

It turned out that the libxml version was fine, but it worked when I changed the Jackrabbit port everything worked.

Thanks again

Barry

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

Oops - looks like I spoke too soon!!

After changing the port, I went to the incorrect url.

I was trying
app_dev.php/admin/dashboard
which is the proof-of-concept a little further through the README

I still get the same error when I go straight to app_dev.php

Lucas, do you think it is worth trying thr php builds?

from cmf-sandbox.

lsmith77 avatar lsmith77 commented on August 15, 2024

Did you manage to load the fixtures?

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

Hi

I have just been through and started the installation from scratch again, and the point where I see the error message is when I try:
app/console doctrine:phpcr:register-system-node-types
in the terminal.

When I do this the terminal output is as follows:

[ErrorException]
Warning: DOMDocument::loadXML(): Space required after the Public Identifier in Entity, line: 1 in /Users/barry/cmf-sandbox/vendor/symfony-cmf/vendor/doctrine-phpcr-odm/lib/vendor/jackalope/src/Jackalope/Transport/Jackrabbit/Request.php line 530
doctrine:phpcr:register-system-node-types [--session[="..."]]

This means that the fixtures did not load. Sorry if I was not clear before, but I don't think I was totally clear in my own mind where I have got to.
The sonata dashboard comes up when I go to:
app_dev.php/admin/dashboard

but app_dev.php still gives the ErrorException message

from cmf-sandbox.

lsmith77 avatar lsmith77 commented on August 15, 2024

ok .. i suggest you try the liip php package .. really no clue what else it can be.

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

me neither - as long as you are sure you correctly configured parameters.yml and have jackrabbit running on the port you tell there

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

i had my parameters.yml configured to my localhost port and not my jackrabbit port. so thanks for that suggestion DBU.

I have now been able to load the fixtures.

After this I tried to load the app_dev.php page, and I got a different error:

An exception has been thrown during the rendering of a template ("The Symfony\Component\Locale\Stub\StubLocale::getDisplayLanguage() is not implemented. Please install the 'intl' extension for full localization capabilities.") in SymfonyCmfCoreBundle::skeleton.html.twig at line 22.

so I am looking at this now. My Terminal gives me the following when I i ask for php -intl:

intl

Internationalization support => enabled
version => 1.1.0
ICU version => 4.8.1
ICU Data version => 4.8.1

Directive => Local Value => Master Value
intl.default_locale => no value => no value
intl.error_level => 0 => 0

Any ideas on what I might have to do to get this to work?

Thanks for your input so far guys. I have been using Symfony2 since the official release last summer, and this is the only time I have had major problems setting anything up so really appreciate you time and expertise!

from cmf-sandbox.

barryj avatar barryj commented on August 15, 2024

loaded intl extension and it worked!

thanks again guys

for reference, this is a great description of how to include intl on MAMP:

http://blog.geertvd.be/2011/05/18/installing-the-intl-extension-on-mamp/

from cmf-sandbox.

dbu avatar dbu commented on August 15, 2024

great! please tell us on the mailing list if you manage to do something with it. or send pull requests if you have improvements of any sort :-)

from cmf-sandbox.

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.