Results 1 to 10 of 34

Hybrid View

  1. #1
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Here's everything I get when I open home/pinewood/public_html/zencart/index.php and click 'view' in cPanel
    thanks.

    application/x-httpd-php index.php
    ASCII text

    </html>
    <?php
    /**
    * Load general code run before page closes
    */
    ?>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Here's everything I get when I open home/pinewood/public_html/zencart/index.php and click 'view' in cPanel
    thanks.

    application/x-httpd-php index.php
    ASCII text

    </html>
    <?php
    /**
    * Load general code run before page closes
    */
    ?>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    I haven't looked at the contents of my store's root index.php in a while, but seems to me there is a LOT missing from yours. There's no beginning, no middle and well, the end is not understood because the rest of ZC is not being loaded at the beginning. Suggest comparing that index.php file with a default install version of one. Something has happened to yours if that is what is in your zencart subdirectory.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Yes, it seemed quite empty to me.
    For a bit of review: index.php seems to have gotten mostly erased when I did my first tiny attempts at editing a few words when i found it deep inside my dreamweaver cs4. As soon as I clicked upload and it was over in a flash. I am far too new at this to even have sorted out backup. And it was all loaded through softaculous in my cPanel.
    So....any idea where one can find a "that index.php file with a default install version of one"....or why I can't seem to get the new template I loaded to just replace the injured index.php?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: beginner text edit question

    Just download the Zencart installation zip file, unzip it and upload includes/index.php to your server, overwriting the one that's there.

    I'm also going to suggest you use a proper FTP program like Filezilla to move files rather than Dreamweaver and/or the CPanel File Manager.

    You would never edit that file in any normal circumstance, anyway. You may have been looking for includes/languages/ENGLISH/index.php.
    Last edited by stevesh; 2 Mar 2014 at 09:21 PM.

  5. #5
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    OK, I downloaded & unzipped Zencart, uploaded (through Cyberduck) the index.php to replace home/pinewood/public_html/zencart/index.php
    and when I look at index.php now in cPanel it is full of code. However, when I go to control panel and open 'online catalog'
    http://pinewoodforge.com/zencart/index.php?main_page=
    It now has no content & no code. The plot thickens!
    thanks too for the education about different files with the same name, it do be confusing to a newby.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    OK, I downloaded & unzipped Zencart, uploaded (through Cyberduck) the index.php to replace home/pinewood/public_html/zencart/index.php
    and when I look at index.php now in cPanel it is full of code. However, when I go to control panel and open 'online catalog'
    http://pinewoodforge.com/zencart/index.php?main_page=
    It now has no content & no code. The plot thickens!
    thanks too for the education about different files with the same name, it do be confusing to a newby.
    Have you tried without the ?main_page= part?

    Just gone to your website, like http://pinewoodforge.com/zencart/ it is rare to see someone trying to go to an address like you posted with the main_page being blank.

    Certainly got an error 500 when trying, so you're going to have to look through your error logs to identify what has gone wrong. My guess is that something else has been changed by playing around with the various files. As stevesh suggested, you want to settle in with what you are going to use to transfer files, and try to become familiar with what you have before making broad changes. Now that you are working towards having a store in a subdirectory, perhaps it or another sub-directory can become you're play with store, where changes made won't affect your live stable store.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Feb 2014
    Location
    Minnesota
    Posts
    22
    Plugin Contributions
    0

    Default Re: beginner text edit question

    Quote Originally Posted by mc12345678 View Post
    Have you tried without the ?main_page= part?


    Certainly got an error 500 when trying, so you're going to have to look through your error logs to identify what has gone wrong. My guess is that something else has been changed by playing around with the various files. As stevesh suggested, you want to settle in with what you are going to use to transfer files, and try to become familiar with what you have before making broad changes. Now that you are working towards having a store in a subdirectory, perhaps it or another sub-directory can become you're play with store, where changes made won't affect your live stable store.
    I have no idea how/ why the ?main_page= part? gets added, I just deleted it in browser back to
    http://pinewoodforge.com/zencart/index.php and got the same blank result though.
    I agree about needing to decide on a method, one person in this discussion suggested using Dreamweaver, and since I am familiar w/ it that's my first choice, but I think stevesh recommended against it......
    I found a file called 'error logs' in cPanel, perhaps this is what you meant, sure enough it had gobs of 'does not exist' messages, such as:

    [Sun Mar 02 19:56:37 2014] [error] [client 67.84.182.144] File does not exist: /home/pinewood/public_html/403.shtml, referer: https://www.google.com/

    but nothing i could see that was useful. thanks, del

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: beginner text edit question

    Quote Originally Posted by MnDel View Post
    Yes, it seemed quite empty to me.
    For a bit of review: index.php seems to have gotten mostly erased when I did my first tiny attempts at editing a few words when i found it deep inside my dreamweaver cs4. As soon as I clicked upload and it was over in a flash. I am far too new at this to even have sorted out backup. And it was all loaded through softaculous in my cPanel.
    So....any idea where one can find a "that index.php file with a default install version of one"....or why I can't seem to get the new template I loaded to just replace the injured index.php?
    The other part (less important than getting your site back up and running), the template affects how things appear, the index.php file that got modified somewhat makes the whole site work. The template gets referenced by the index.php file rather than replace it. Possibly a number of ways to explain, but basically your templat and the standard operation of ZC are two completely different things. Hopefully through stevesh' assistance you have found the file(s) needed to get your site to appear again. And maybe you'll get to see what your template looks like. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139b Text box for Edit Category & Edit Product greyed out
    By irishshoppercom in forum Basic Configuration
    Replies: 0
    Last Post: 23 Oct 2013, 10:03 AM
  2. v150 How to edit header text/images, also edit pages?
    By Gary Compton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Feb 2012, 10:01 PM
  3. Beginner question...
    By MaDd0g in forum Addon Payment Modules
    Replies: 1
    Last Post: 20 Jun 2010, 11:58 AM
  4. A couple of Question from a beginner
    By nomadrw in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Sep 2007, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg