Forums » Installation

obj_itop

mrcs
SPAIN
2010-09-01 14:30:00
Permalink Post
 

I don't know what happens with my web, marcoscabanas.com, but when you enter you only see this. I was trying something the other day and deleted the file index.php from the root folder. When I saw that the web doen't work withot this I put it again in the root folder, and since then the web is broken. Please someone can help me?

lemathieu A
FRANCE
2010-09-01 14:35:12
Permalink Post
 

reupload the fresh/clean index.php from your theme folder.

mrcs
SPAIN
2010-09-01 15:00:29
Permalink Post
 

I have the same index.php in my root folder and in my theme folder. It was like that before I deleted it.

lemathieu A
FRANCE
2010-09-01 15:49:31
Permalink Post
 

nope… compare your files with a clean indexhibit folder.

mrcs
SPAIN
2010-09-01 15:57:41
Permalink Post
 

I have just downloaded the installation kit and uploaded the index.php in the root folder and in my theme folder. Now the message is:

Warning: require_once(defaults.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/11/d274204309/htdocs/index.php on line 23

Fatal error: require_once() [function.require]: Failed opening required 'defaults.php' (include_path='.:/usr/lib/php5') in /homepages/11/d274204309/htdocs/index.php on line 23

Also, I can't enter in my indexhibit admin "ERROR 403: ¬°PROHIBIDO!"

mrcs
SPAIN
2010-09-02 19:11:56
Permalink Post
 

Please, I don't really know what happens or what to do...

arsondpi A
GREECE
2010-09-03 10:55:59
Permalink Post
 

Check out this thread!
Sounds familiar? No all index.php files are the same...
The index.php in your root folder is different to the one in your theme -
Did you upload the right index.php in the right directory?

mrcs
SPAIN
2010-09-03 13:36:40
Permalink Post
 

I downloaded the installation kit from this web, and then I uploaded the index.php from the ndxz-studio folder in the root folder and in my theme folder.

The thing is that when I deleted the index.php from my root folder the web worked perfectly, but when I uploaded it again (the same file) the web was broken.

:(

mrcs
SPAIN
2010-09-04 07:34:21
Permalink Post
 

Any clue, please? I'm lost!

arsondpi A
GREECE
2010-09-04 10:16:43
Permalink Post
 

replace the index.php file that is in the same level as your ndxz-studio (not the one in it)

mrcs
SPAIN
2010-09-04 11:03:31
Permalink Post
 

Done. Now the page is blank.

mrcs
SPAIN
2010-09-04 11:07:31
Permalink Post
 

Oh gosh, this is exasperating...

arsondpi A
GREECE
2010-09-04 11:10:58
Permalink Post
 

well you're still missing files and I can't tell which files you're uploading...so if that won't work try a link called "how to reinstall without losing content" in the Useful threads post.

mrcs
SPAIN
2010-09-04 12:06:33
Permalink Post
 

I have deleted the gimgs folder in the files folder (I can't delete de root folders) and now I can't upload a folder in the same place. I'm completely messed up.

mrcs
SPAIN
2010-09-04 12:14:38
Permalink Post
 

Why can't I enter in the indexhibit board? Aaaaaaaaaaaaaaaaaaagggggghhh!!

mrcs
SPAIN
2010-09-05 22:49:11
Permalink Post
 

Please, I'm still stuck with this problem.

mrcs
SPAIN
2010-09-07 09:32:15
Permalink Post
 

I've been thinking in reinstalling the whole indexhibit but I don't know what files I have to delete or how to create a new database. And yes, I have read the thread.

Please help me

mrcs
SPAIN
2010-09-07 09:43:29
Permalink Post
 

Can someone tell me exactly what index.php I have to upload in the root folder and which one to upload in my them folder? It have to be different each other or are different in the root than in my them folder? This was the only thing I did before the web was broken, deleting these 2 files, so the problem must be this..

Pleeeeeeeeeaaaaaaase!!

rickykappa A
ITALY
2010-09-07 09:55:14
Permalink Post
 

every index.php is different, so you should upload each local (in your computer) folder's index.php to its corresponding folder online.
if you didn't mess up your local files everything should work, otherwise download a new copy of indexhibit and use those fresh files.

mrcs
SPAIN
2010-09-07 09:59:50
Permalink Post
 

I did that a few days ago when someone told me to upload the new files. I downloaded the installation kit and uploaded the index.php in the folders. Also I was trying in every folder to upload a different index.php each time, but still didn't work any combination.

rickykappa A
ITALY
2010-09-07 10:43:56
Permalink Post
 

it seems to me that you messed up those files:
this should be your login, while it's clearly the index.php which should be instead in your root...
be patient and do it again...
;-)

mrcs
SPAIN
2010-09-07 14:01:32
Permalink Post
 

Nothing... doesn't work

Could be the problem the file index.php itself and not the place in where it is??

This is the index.php that goes in the root folder, can anyone hace a look and tell me if there's something wrong in it?

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



:










path = '/files/gimgs/'; $(document).ready(function()
{
setTimeout('move_up()', 1);
expandingMenu(0);
expandingMenu(1);
expandingMenu(2);
expandingMenu(3);
});













  • Built with

    Indexhibit

  •          




    thank you

    mrcs
    SPAIN
    2010-09-07 14:03:47
    Permalink Post
     

    How can I show the whole index.php here?

    mrcs
    SPAIN
    2010-09-07 14:12:12
    Permalink Post
     



    :










    path = '/files/gimgs/'; $(document).ready(function()
    {
    setTimeout('move_up()', 1);
    expandingMenu(0);
    expandingMenu(1);
    expandingMenu(2);
    expandingMenu(3);
    });













  • Built with

    Indexhibit

  •          




    mrcs
    SPAIN
    2010-09-07 14:29:09
    Permalink Post
     

    Here it is my index.php file, can someone look at it and tell me if there's something wrong?

    http://www.gigasize.com/get.php?d=t2yy1wfzf3b

    Vaska A
    UNITED STATES
    2010-09-07 16:50:31
    Permalink Post
     

    Why can't you post only the pertinent part of the code. And, to post code here...you need to use code tags (look left) and no blank lines in the code.

    mrcs
    SPAIN
    2010-09-07 16:55:49
    Permalink Post
     
    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3. <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
    4. <head>
    5. <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
    6. <title><%title%> : <%obj_name%></title>
    7. <link rel='stylesheet' href='<%baseurl%><%basename%>/site/<%obj_theme%>/style.css' type='text/css' />
    8. <!--[if lte IE 6]>
    9. <link rel='stylesheet' href='<%baseurl%><%basename%>/site/<%obj_theme%>/ie.css' type='text/css' />
    10. <![endif]-->
    11. <plug:front_lib_css />
    12. <plug:front_dyn_css />
    13. <script type='text/javascript' src='<%baseurl%><%basename%>/site/js/jquery.js'></script>
    14. <script type='text/javascript' src='<%baseurl%><%basename%>/site/js/cookie.js'></script>
    15. <script type='text/javascript' src='<%baseurl%><%basename%>/site/js/expandingMenus.js'></script>
    16. <plug:front_lib_js />
    17. <script type='text/javascript'>
    18. path = '<%baseurl%>/files/gimgs/';
    19. $(document).ready(function()
    20. {
    21. setTimeout('move_up()', 1);
    22. expandingMenu(0);
    23. expandingMenu(1);
    24. expandingMenu(2);
    25. expandingMenu(3);
    26. });
    27. </script>
    28. <plug:front_dyn_js />
    29. <plug:backgrounder color='<%color%>', img='<%bgimg%>', tile='<%tiling%>' />
    30. <style type="text/css">
    31. <!--
    32. .Estilo2 {font-style: italic}
    33. -->
    34. </style>
    35. <script type="text/JavaScript">
    36. <!--
    37. function MM_swapImgRestore() { //v3.0
    38.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    39. }
    40. function MM_preloadImages() { //v3.0
    41.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    42.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    43.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    44. }
    45. function MM_findObj(n, d) { //v4.01
    46.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    47.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    48.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    49.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    50.   if(!x && d.getElementById) x=d.getElementById(n); return x;
    51. }
    52. function MM_swapImage() { //v3.0
    53.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    54.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    55. }
    56. //-->
    57. </script>
    58. </head>
    59. <body class='section-<%section_id%>'>
    60. <div id='menu'>
    61. <div class='container'>
    62. <%obj_itop%>
    63. <plug:front_index />
    64. <%obj_ibot%>
    65. <!-- you must provide a link to Indexhibit on your site someplace - thank you -->
    66. <ul>
    67. <li><font color="#999999">Built with</font> 
    68.   <p>
    69. <a href='http://www.indexhibit.org/'><em>Indexhibit</em></a></li>
    70. </ul>
    71. <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.marcoscabanas.com&layout=button_count&show_faces=false&width=450&height=30&&action=like&font=arial&colorscheme=light" allowTransparency="true" frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:450px; height:60px"></iframe>
    72. </div>    
    73. </div>    
    74. <div id='content'>
    75. <div class='container'>
    76. <!-- text and image -->
    77. <plug:front_exhibit />
    78. <!-- end text and image -->
    79. </div>
    80. </div>
    81. </body>
    82. </html>
    mrcs
    SPAIN
    2010-09-07 16:58:35
    Permalink Post
     

    This is my index.php in the root folder.
    Vaska, could you please tell me if there's something wrong?

    mrcs
    SPAIN
    2010-09-08 08:28:22
    Permalink Post
     

    up

    mrcs
    SPAIN
    2010-09-08 16:44:14
    Permalink Post
     

    Ok, I give up.

    Thanks anyway.

    Vaska A
    UNITED STATES
    2010-09-08 16:47:55
    Permalink Post
     

    Thanks for giving people the time to respond (have some patience - this is a free forum). I see the problem...but you give up...so why should I even try anymore.

    People need to be responsible for their own sites - not everything is our (of my) fault when it doesn't go right. And, you have some terribly messed up code in there.

    Geez...

    mrcs
    SPAIN
    2010-09-08 17:02:11
    Permalink Post
     

    I'm giving up trying myself without positive results, not giving up waiting. As I said before, I thank you all the people that wanted to help me. I'm just upset because of a little change I made, I can't solve it.

    So if you want to share the solution with me, I will be pleased...

    Vaska A
    UNITED STATES
    2010-09-08 17:05:08
    Permalink Post
     

    First of all, please read the forum rules.

    I'm pretty sure you are using Dreamweaver? Yes?

    If so, I believe you have killed your root index.php page by saving the template over it. Reupload the root index.php file and see what happens.

    Solving problems...debugging...is a process. I can guess but I can never be sure what is going on with a persons site. Even in my own work I have times when I have to spend alot of time finding random problems. It is not always easy...even if you know what you are doing.

    mrcs
    SPAIN
    2010-09-08 17:51:20
    Permalink Post
     

    Thanks Vaska.
    The only thing I made was delete the index.php from my root folder, I didn't save over ir, just delete. After I saw the web didn't work without this file, I reuploaded it, the same, but didn't work. I know it's the same because I have all the files in a folder in my computer.

    Then I was trying with all the index.php I have, also with the index.php files that are in the installation kit, as they said me, without positive results.

    mrcs
    SPAIN
    2010-09-08 17:53:51
    Permalink Post
     

    And yes, I'm using dreamweaver, but I didn't made any change in the index.php after I deleted it from the root file. I just deleted it, and inmediately, when I saw the web wasn't working, uploaded it again.

    Vaska A
    UNITED STATES
    2010-09-08 19:19:19
    Permalink Post
     

    The problem is DW...and that you don't really know how or what it is doing. Don't use it. Reupload the file with FTP only. Not DW.

    mrcs
    SPAIN
    2010-09-08 19:30:17
    Permalink Post
     

    Vaska, I allways upload the files with ftp... I use DW to change the style and the index.php, just to include the facebook button.

    Vaska A
    UNITED STATES
    2010-09-08 19:33:05
    Permalink Post
     

    The problem is that you have the wrong index.php file at the root. I'm quite certain of it. Even Pindaros in his first post was alluding to this. Honestly, I can't see a way here to help you with this...because it's pretty clear that is where the problem is.

    I could be wrong...but I don't think I am. I've seen this happen many times before and it always involved DW.

    Vaska A
    UNITED STATES
    2010-09-08 19:46:31
    Permalink Post
     

    This is my index.php in the root folder.
    Vaska, could you please tell me if there's something wrong?

    Yes, it's the wrong file. This is not the root index.php file that shipped with Indexhibit.

    mrcs
    SPAIN
    2010-09-08 20:17:25
    Permalink Post
     

    I have just uploaded this index.php, the one that goes in the installation kit, and I get now a error 500.

    1. <?php define'SITE' 'Bonjour!'
    2. // turn this on if you want to check things
    3. //error_reporting(E_ALL);
    4. // the basics
    5. if file_exists'ndxz-studio/config/config.php' require_once 'ndxz-studio/config/config.php'
    6. require_once 'ndxz-studio/defaults.php'
    7. require_once 'ndxz-studio/common.php'
    8. // make sure we have our connection array
    9. shutDownCheck
    10. // messy, but seems to work
    11. $_REAL_SCRIPT_DIR  realpathdirname$_SERVER'SCRIPT_FILENAME'
    12. $_REAL_BASE_DIR  realpathdirname__FILE__
    13. $_MY_PATH_PART  substr$_REAL_SCRIPT_DIR strlen$_REAL_BASE_DIR
    14. $uri  $_MY_PATH_PART
    15. ¬†¬†¬†¬† substrdirname$_SERVER'SCRIPT_NAME' 0 strlen$_MY_PATH_PART
    16. ¬†¬†¬†¬† dirname$_SERVER'SCRIPT_NAME'
    17. // clean up the uri
    18. $uri  MODREWRITE == false 
    19. ¬†¬†¬†¬†str_replace'/index.php?' '' $_SERVER'REQUEST_URI' 
    20. ¬†¬†¬†¬†entry_uri$uri $_SERVER'REQUEST_URI'
    21. ¬†¬†¬†¬†// TEMPORARY
    22. // what if it's more than one folder up?
    23. $uri  str_replace$self '' $uri
    24. // time to roll
    25. load_helpersarray'time'
    26. $OBJ  load_class'core' TRUE 'lib'
    27. // page query
    28. $rs  $OBJ->db->fetchRecord"SELECT * 
    29. ¬†¬†¬†¬†FROM "PX"objects, "PXobjects_prefs 
    30. ¬†¬†¬†¬†WHERE url = '$uri'
    31. ¬†¬†¬†¬†AND status = '1' 
    32. ¬†¬†¬†¬†AND object = obj_ref_type
    33. if $rs 
    34. ¬†¬†¬†¬†// try again with site root
    35. ¬†¬†¬†¬†$rs  $OBJ->db->fetchRecord"SELECT * 
    36. ¬†¬†¬†¬†¬†¬†¬†¬†FROM "PX"objects, "PX"objects_prefs 
    37. ¬†¬†¬†¬†¬†¬†¬†¬†WHERE url = '/'
    38. ¬†¬†¬†¬†¬†¬†¬†¬†AND status = '1' 
    39. ¬†¬†¬†¬†¬†¬†¬†¬†AND object = obj_ref_type"
    40.         
    41. ¬†¬†¬†¬†// we don't search engines indexing this
    42. ¬†¬†¬†¬†header"HTTP/1.1 404 Not Found"

        // we need a formal error page
        if (!$rs) echo 'Page not found error here.';
    }
    // autoload 'plugins' folder
    include DIRNAME.BASENAME.'/site/plugin/index.php';
    // additional variables
    // perhaps we should port these differently?
    $rs['baseurl'] = BASEURL;
    $rs['basename'] = BASENAME;
    $rs['basefiles'] = BASEFILES;
    $rs['gimgs'] = GIMGS;
        // get the front end helper class
    $OBJ->lib_class('front');

    // time for some action
    if ($rs['obj_theme'] == 'eatock')
    {
        $contents = $OBJ->front->front_eatock();
    }
    else
    {
        $filename = DIRNAME . BASENAME . '/site/' . $rs['obj_theme'] . '/index.php';
        $fp = @fopen($filename, 'r');
        $contents = fread($fp, filesize($filename));
        fclose($fp);
    }
    // makin' stuff happen
    $PARSE =& load_class('parse', TRUE, 'lib');
    $PARSE->vars = $rs;
    $PARSE->code = $contents;
    echo $PARSE->parsing();
    // do stats if they are wanted
    if ($default['statistics'] == TRUE) load_class('statistics', TRUE, 'lib');
    exit;
    ?>

    Vaska A
    UNITED STATES
    2010-09-08 20:33:13
    Permalink Post
     

    And look at this - there should be a login page and once again there is your page template.

    I'm not sure what you are doing but things are clearly out of place.

    Reupload all files except the ones at /ndxz-studio/config/ - this has your database connection.

    Do not edit with DW. Do not use DW to upload. Until things are running...

    mrcs
    SPAIN
    2010-09-08 21:32:09
    Permalink Post
     

    All the files? Even my style.css??

    I always have edited the files with DW since I have the web and never have a problem. And don't use DW to upload the files. In fact, I didn't know you can upload files with DW.

    mrcs
    SPAIN
    2010-09-08 21:41:49
    Permalink Post
     

    What if I create a new database in my host server and then upload the indexhibit files,as it was the first time?

    Vaska A
    UNITED STATES
    2010-09-08 23:52:05
    Permalink Post
     

    Well, you are clearly having problems with DW now - your files are totally messed up. What it does is save files over other files...you don't even know that you are mixing things up.

    Yes, this is what I'm saying. If you want to start over with a new database then that is good too.

    mrcs
    SPAIN
    2010-09-09 07:41:48
    Permalink Post
     

    I'll try it... Last question until I do this. I have taken into account that the index.php files I downloaded from the installation kit don't have the

    1. <!-- you must provide a link to Indexhibit on your site someplace - thank you -->

    And I know the first time I uploaded this files into my root folder, it was there.

    Is the index.php now different?

    arsondpi A
    GREECE
    2010-09-09 08:48:40
    Permalink Post
     

    In one of my posts above I typed about the "how to reinstall without losing content" in the Useful threads post - did you see that one?

    Showing 1 - 46 of 46 posts in Forum > Installation > obj_itop
     

    You need to be logged in to post.