Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Phil Sturgeon[/eluser]
[quote author="hugle" date="1261629234"]Hello,


I've been getting error about:
Code:
Fatal error: Call to undefined method stdClass::attributes() in /var/www/vhosts/invista.lt/subdomains/namai/httpdocs/application/models/modules_m.php on line 131

Later I realised, that details.xml file, cannot containt the '&' symbol at lest in name...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<module version="1.4" type="content">
    <name>
        <en>Q & Answers</en>
replacing for example '&' in the name - makes the admin panel to work Smile
Good luck at Pyro![/quote]

Not that I want to pass the buck, but the reason it breaks is because adding & to an XML file is invalid XML syntax. It needs to be escaped just like in (X)HTML by using &amp;, or wrapping the tag with CDATA:

Code:
<en>&lt;![CDATA[ Some "freaky" name & ! < ]]></en>

That will stop XML from parsing the content of the block, therefore PHP will stop its bitching. The down-side to doing it that way is that it will be directly output to the browser and cause the HTML to be invalid.

[quote author="ray73864" date="1261656295"]Because of this stupid host, i can't seem to use a .htaccess file for url rewriting (not sure why, i will have to look into it further). So i set the index page in config.php to be 'index.php', however when i click on one of my pages in the admin section, nothing happens.

So i started up firebug, clicked on a page to edit, and then looked at the console. The console window showed the following:

Quote:GET http://www.capelpharmacy.com.au/admin/pa..._details/2 404 Not Found 361ms

The page it should have gone to is: http://www.capelpharmacy.com.au/index.ph..._details/2

I fixed the problem by changing application/core_modules/pages/js/index.js so that it went to:

Code:
$('div#page-details').load(BASE_URI + 'index.php/admin/pages/ajax_page_details/' + page_id);

I also had to change the one for 'ajax_fetch_children' so that it had 'index.php' in there too.[/quote]

What an oversight! It's been a while since I developed without mod_rewrite, I'll disable it and patch BASE_URL to contain index.php if I can so it works with application-wide. Thank you for spotting this one ray, stellar bug report as always. :-)

Have you had a play with v0.9.8-dev yet? My pushes this morning got it pretty close I think.


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 12-24-2009, 04:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB