Getting past the first base!


(Bitemike) #1

I really want to get this cms working but I am getting more frustrated by the minute. I have done all that I can to get my site functioning but no matter what I do when I attempt a preview I get the folling message…


Fatal error: paint(): Failed opening required '/home/mysource/public_html/data/private/assets/design/32/design_file.php' (include_path='.:/home/mysource/public_html/php_includes:/usr/share/pear') in /home/mysource/public_html/core/assets/designs/design/design.inc on line 704



I have created a site… created the page… set the design to base the sit on to firstly my own parse file (no luck) and then tried to use the mysourceDesign file. I set the home page and then set all to Live and tried to preview. No matter what I do I get the same error…



Has anyone got a suggestion (be gentle with me) :smiley:


(Greg Sherwood) #2

If that file does not exist, it may not have been created when you uploaded the design parse file.


Try going to the details screen of the design and checking the 'manual parse' checkbox after locking the screen. This will reparse the design and create that file.



If you get an error, you might actually have a permissions problem on the filesystem. Make sure the /home/mysource/public_html/data directory has write access for the user Apache is running as.


(Bitemike) #3

I have checked the permissions and they are fine. Maybe I am doing something wrong with the parse file. It is a file called parsefile.txt and in in a local folder. I get the folloing message when I try to upload it


All your images, stylesheets and javascript files MUST be in the relative directory './mysource_files'



What is meant by this comment? Should I have a local folder that matches the server folder? And should the file I want to upload be in a particular folder?


(Greg Sherwood) #4

The is just a reminder comment that is always there. It just means that when you reference images/css in your parse file, you need to make sure the links are in the form: <img src="mysource_files/image.png" />
Note that the img src indicates that the image.png file is located in a directory called mysource_files. When you design is displayed, Matrix will replace mysource_files/image.png with the correct URL.



Do you get any errors when you parse your file? They would be blue/orange/red boxes that appear at the top of the screen.



Edited to ask if there is external access to this installation in case you want me to take a look at the admin interface for you.


(Bitemike) #5

I can't even get to that step … I create a design called 'myDesign' I view details and unlock… I browse for the local file to upload and locate the txt files called parse (as per a post on this forum I used this…


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><mysource_print id_name="global" var="site_name" /> : <mysource_print id_name="global" var="asset_name" /></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css" media="all">

body {

background-color: #fff;

color: #000;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: small;

}

</style>

</head>



<body>

<mysource_area id_name="body" design_area="body" />

</body>

</html>



I then committed the selection and yet I am told that no files existed to parse when I select parse file…


(Greg Sherwood) #6

Can you look at the file MYSOURCE_ROOT/data/private/logs/error.log and see if there are any errors in there that are not being displayed on the screen.


(Bitemike) #7

These are the last couple of error messages


[18-Dec-2004 18:17:32] PHP Fatal error: paint(): Failed opening required '/home/mysource/public_html/data/private/assets/design/32/design_file.php' (include_path='.:/home/mysource/public_html/php_includes:/usr/share/pear') in /home/mysource/public_html/core/assets/designs/design/design.inc on line 704

[18-Dec-2004 19:25:15] Sat 18/12/2004 19:25:15 [php warning] (/core/assets/designs/design/design.inc:704) - paint(/data/private/assets/design/32/design_file.php): failed to open stream: No such file or directory

[18-Dec-2004 19:25:15] PHP Fatal error: paint(): Failed opening required '/home/mysource/public_html/data/private/assets/design/32/design_file.php' (include_path='.:/home/mysource/public_html/php_includes:/usr/share/pear') in /home/mysource/public_html/core/assets/designs/design/design.inc on line 704


(Bitemike) #8

On examination of the server folders there is no such folder as design.


(Greg Sherwood) #9

Looks like you're not getting any errors from the parse file - they are all related to printing the design on the frontend. I have a few questions though.


Can you do things like change the name of the design?

Does your txt file appear under the design asset in the Java asset map (you may need to refresh the asset map frame to check but it shouldnt appear there)?

Can you upload an attached file (the 2 bottom upload fields)?

Can you view the Edit Parse File screen of the design and does it tell you to upload a file first?


(Bitemike) #10

yes

[quote]Does your txt file appear under the design asset in the Java asset map (you may need to refresh the asset map frame to check but it shouldnt appear there)?[/quote]

No

[quote]Can you upload an attached file (the 2 bottom upload fields)?[/quote]

I don't know... I went through the upload process with no apparent erro but I can't find it on the server (where would it go to?)

[quote]Can you view the Edit Parse File screen of the design and does it tell you to upload a file first?[/quote]

Yes. And, yet it tells me to upload the file first.

(Greg Sherwood) #11

The uploaded files would appear as file assets under the design if they were uploaded succesfully.


As for the parse file, I dont know what else the problem could be without taking a look. If you can give me access, PM me the details if you want me to take a look. Otherwise you might have to wait and see if the other guys have some ideas about what is going wrong here. I've never had a problem uploading a parse file unless I get errors - so I'm out of ideas.


(Greg Sherwood) #12

I've tried the parse file on your system and it doesnt work. I've tried the same parse file on my own stable system and it works fine. Not sure what the problem is here at all.


I also cant upload the parse file as an attached design file, and I cant create a normal file asset. Seems like something is wrong with file uploads on your system (maybe they are disabled).



Can you create a web accessible PHP file with the following contents:

    <?php
    phpinfo();
    ?>


Access this file with your browser, save the output as a HTML document, and attach it to your next post. There may be some PHP settings stopping file uploads.

(Bitemike) #13

I have pm you with the URL


(Greg Sherwood) #14

Your php.ini says that file uploads are disabled. Edit your php.ini file and change the “file_uploads” line so that the value is “1”.


While you are there, you might also want to look at the “upload_max_filesize” option and make sure it is large enough for the files you are going to want to upload. Your current setting should be fine for designs.



You can find more info at http://au.php.net/manual/en/ini.sect.file-uploads.php


(Bitemike) #15

Thanks… do I need to reboot the server to register the change in the ini file?


(Avi Miller) #16

No, you just need to restart Apache.


(Bitemike) #17

I restarted Apache and it is now set to upload… I will try again now… Thanks Greg.


Mike


(Greg Sherwood) #18

I think you have to restart apache for the changes to be made.


(Bitemike) #19

SUCCESS the site is working. Now to dig into the rest of this great looking CMS… I can see real potential.