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

[eluser]ray73864[/eluser]
Just went to the 'Source-Master' and downloaded the latest sourcecode, everything was working all fine and dandy during installation (the database sql scripts went through perfectly this time around), and i can now bring the front page up at 'http://localhost/pyrocms/'.

however none of the assets are working, images are missing, the stylesheet isn't being loaded, etc...

according to the logfile, it has this problem:

Code:
DEBUG - 2009-06-08 05:34:25 --> ---Matchbox---
DEBUG - 2009-06-08 05:34:25 --> Finding: libraries/MY_Asset.php
DEBUG - 2009-06-08 05:34:25 --> No valid caller
DEBUG - 2009-06-08 05:34:25 --> Looking in: application/modules//libraries/MY_Asset.php
DEBUG - 2009-06-08 05:34:25 --> Looking in: application/libraries/MY_Asset.php
DEBUG - 2009-06-08 05:34:25 --> Not found
DEBUG - 2009-06-08 05:34:25 --> --------------

that seems to be the only recurring 'not found' error in the logfile (when set at log level 2 in CI config.php).

Also, i can't seem to submit an issue on github, when i click the 'Create an Issue' button it takes me to the login page, when i click on the 'create new issue' link it shows me the issue creation form, but when i go to submit that, it just takes me to the github.com homepage.

oh, and according to firebug:

Code:
Error: The stylesheet http://localhost/pyrocms/index.php/error_404.html was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://localhost/pyrocms/
Line: 0

and

Code:
Error: syntax error
Source File: http://localhost/pyrocms/index.php/error_404.html
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

[eluser]Phil Sturgeon[/eluser]
[quote author="ray73864" date="1244437438"]i also used phpmyadmin to import the .sql files (i had a few problems there, one of them was creating the default 'home' page record, it was missing a few columns, and the twitter config stuff didn't go in because of problems too.

MySQL CLI Client had the same problems, so i am guessing something is up with 2-default.sql

i made sure that the 'rewrite-module' apache module was loaded, but when i navigate to 'http://localhost/pyrocms/' i get a CI styled error :: "An Error Was Encountered", makes me think that it isn't related to pyrocms but instead to CI and wampserver.

Update: Ok, just tried a fresh copy of CI, and the welcome page came up properly, so i'm not entirely sure now. Time for the CI logging to be turned on i guess.[/quote]

Thedefault data was screwy on v0.9.5.1 but was fixed in v0.9.5.2. You have mentioned both the issues that were addessed.

As for the log files, thats just matchbox doing itsthing. Always looks for extra files, but there is no MY_Asset class nor is there one in any module.

It probably cant find any CSS or images due to its auto-guesing of the base_url/path being wrong. Look in the HTML and see what its guessing at for these assets.

[eluser]ray73864[/eluser]
it showed the assets as:

Code:
&lt;link href="pyrocms/application/assets/css/style.css" rel="stylesheet" type="text/css" /&gt;
&lt;link href="pyrocms/application/themes/advertising/css/layout.css" rel="stylesheet" type="text/css" /&gt;
    
    [removed][removed]

    [removed][removed]
&lt;link href="pyrocms/application/assets/css/facebox.css" rel="stylesheet" type="text/css" /&gt;
    
    [removed][removed]

            &lt;link rel="canonical" href="http://localhost/pyrocms/index.php" /&gt;
        &lt;link rel="alternate" type="application/rss+xml" title="Un-named Website" href="http://localhost/pyrocms/index.php/news/rss/all.rss" /&gt;

and the images as:

Code:
&lt;input type="image" src="pyrocms/application/assets/img/admin/fcc/btn-login.jpg" value="Login" name="btnLogin" /&gt;
, etc...

i did change the base_url in config.php to be: http://localhost/pyrocms/ cos i thought it might be the auto-detect one that you had in there, but alas it didn't change anything.

[eluser]Phil Sturgeon[/eluser]
The base_url is not used for asset linking, but the same logic is used in config/constants.php to create a absolute path to assets. You will need to hardcode that too. Looks like it is just missing a slash at the start.

Hopefully I can get bootcamp working again on my mac to get a WAMPserver setup, but in the meantime just hardcode the constants.php and base_url to use values you know work.

[eluser]ray73864[/eluser]
yep, changing the APPPATH_URI and BASE_URI in constants.p fixed the problem.

according to the javascript settings in the 'view source' of the home page, they were both set to:

Code:
var APPPATH_URI = "pyrocms/application/";
    var BASE_URI = "pyrocms";

so yeah, they were just missing the / at the beginning.

One thing i just noticed (though i may have not actually selected it), was that when i logged in and went to create my new admin account, i selected the 'role' as 'admin', filled in all the details, and then clicked on the create button.

When the users listing came up it shows my new user as 'user' instead of 'admin'

[eluser]Phil Sturgeon[/eluser]
Arg so many bugs! I have created an issue for the / problem on github which is an easy fix.

The user/admin issue is a strange one. Can you check in the database for me? Also running a exit($this->db->last_query()); after the updateUser() model call would she a bit of light.

[eluser]Yorick Peterse[/eluser]
Figured out I can't DM you on Twitter, so I'll post this here : I'm working on the template for PyroCMS (the one for the website, not the default one). But I was wondering, should I commit it to Git ? Personally this doesn't seems a very good idea, as everybody will be able to access that template if I commit it Smile

This is how the template looks right now (about 25% has been done) :

http://img413.imageshack.us/img413/313/picture1eeo.png

[eluser]Tom Glover[/eluser]
[quote author="Yorick Peterse" date="1244499763"]Figured out I can't DM you on Twitter, so I'll post this here : I'm working on the template for PyroCMS (the one for the website, not the default one). But I was wondering, should I commit it to Git ? Personally this doesn't seems a very good idea, as everybody will be able to access that template if I commit it Smile

This is how the template looks right now (about 25% has been done) :

http://img413.imageshack.us/img413/313/picture1eeo.png[/quote]

Nice Template, simple, clean and effective.

[eluser]Phil Sturgeon[/eluser]
Commit it to a branch and push the branch instead of pushing master. I have no problems with the source for the pyrocms site being live if you don't. Nothing to hide here.

[eluser]Yorick Peterse[/eluser]
[quote author="Phil Sturgeon" date="1244503120"]Commit it to a branch and push the branch instead of pushing master. I have no problems with the source for the pyrocms site being live if you don't. Nothing to hide here.[/quote]

Okidoki. By the way, could you change the behaviour of the news module ? Right now it still has some parts hardcoded into the view.php file (probably the same with other modules).




Theme © iAndrew 2016 - Forum software by © MyBB