CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Publishing: Broken file/asset path when moving to remote server

Print topic Send  topic

Author Message
justmelat

Posts: 6
Posted: 01/25/2013, 11:10 AM

Hello:

I just purchased CCS and am liking it thus far, but here is a snag, I made a project in code charge studio and published in a local machine. It uses a mysql database in the local machine and currently I am using localhost as a dev host.

I then published everything to my remote server. When I open the page, most things are missing, ccs, images, header, footer, db, etc. So of course just means links are broken, and i know I have to deal with the db connection, but since I moved/published everything into main folder on my remote server, same name as local by the way, I don't understand why the basics, templates, images, headers, etc. are not appearing.

I don't see a mention of this exact issue in the forum, so I feel I must have done something incorrectly.

I would like to know if I didn't publish correctly, which I don't think is the case, since all the files are on my remote server now.

I don't mind tweaking paths, what do I need to change in the code, but then I don't think I should have to change anything since all the files are going into the one folder.

Any insight, suggestions, explanations would be greatly appreciated.
_________________
~~Justmelat
View profile  Send private message
Lucius

Posts: 220
Posted: 01/25/2013, 1:58 PM

Hi,

Open CCS, on "Home" tab click "Publishing settings" on "Files to publish" you decide what files should be published, so if you want to publish all (except the project files, which really should be only on your local development PC), check "All files excluding extensions" and leave default values in textbox.

For more info open CCS help file and search for "Configuring Publishing Settings" topic.
View profile  Send private message
justmelat

Posts: 6
Posted: 01/25/2013, 2:18 PM

HI Lucius

Thanks for your response. I have the publishing setting complete. As mentioned all my files were successful published to my remote server, but I guess the more direct question is, why are all the links to images, headers, footers, etc. broken when publishing to another server?
_________________
~~Justmelat
View profile  Send private message
Lucius

Posts: 220
Posted: 01/25/2013, 3:13 PM

Hi,

Well that depends on your local vs remote host folder structure as well as the relative and absolute linking you might have used in your HTML. It's not a CCS issue, but how you define linking to objects in your pages.

What I can recommend is using some developer debugging plugin/function in web browser, like Firebug plugin for Firefox, or doing it the old fashion way - check webpage source.

See what is your browser requesting, what is the path of an image or file missing and then check how you defined it in your HTML page.

Tip: check CCS help for "PathToRoot". It will give you info how to use it serverside, but you can use similiar macro in HTML view like so:

<img alt="" src="{page:pathToRoot}Your_Dir/Your_Image.jpg">
View profile  Send private message
Rick

Posts: 52
Posted: 01/25/2013, 3:58 PM

Keep in mind linux servers are case sensitive. So if you develop using Windows, which is not case sensitive, a given image, etc. will work on your local setup regardless of the case (upper/lower/mixed) but must be exact case on the linux hosting server.

View profile  Send private message
justmelat

Posts: 6
Posted: 01/25/2013, 4:22 PM

Ahhh, I think the [PathToRoot] maybe where I need to continue my search and thanks so much Lucious!!


I did check the case mismatch possibility, but thanks for the suggestion Rick.

I will keep plugging away.
_________________
~~Justmelat
View profile  Send private message
justmelat

Posts: 6
Posted: 01/25/2013, 6:46 PM

Yahoo!! success with another method. Had continued issues with the publishing to remote server. I'm sure it is something I am overlooking, but decided to just try using my ftp app [filezilla], so I deleted all the previous files that I published to my remote server and used filezilla to transfer them again and viola - changed the db connect info in common.php and it all works.

I'll go back to the publish feature later to figure out what I was doing wrong.
_________________
~~Justmelat
View profile  Send private message
Lucius

Posts: 220
Posted: 01/26/2013, 6:55 AM

If you are sure that the files were in correct places, then next time you will have such issue check if the files have correct access rights and group, as I guess your hosting is on some *nix server.
View profile  Send private message
justmelat

Posts: 6
Posted: 01/26/2013, 12:05 PM

HI Lucius:

You are correct, it is a linux server. I will double check, but odd - because "publishing" should basically be doing the same thing that Filezilla did. I'll have to get it figured out because publishing after making changes would be easier than jumping into filezilla each time.

Thanks again for your advice.
_________________
~~Justmelat
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.