WU8V Posted October 5, 2009 Posted October 5, 2009 I have completed the process of Upgrading osC from 2.2 MS2 to 2.2 RC2a due to my host upgrading mysql. I have most of the store running ok, I think, but I cannot get an admin area, all I get is a white screen and "done" on the lower left corner. I had three contributions in the admin area, and at this point I would even consider re-installing whatever I need to to get back working again. The contribs were Easypopulate, FCKeditor, and one that made tabs of the different input areas. (don't remember the name) Is there a way to just start over with just the admin area without affecting all my work on the "customer area" of the store? Is there a way to trace through and find what I am missing on the admin area so that I can get it back running? Please help. Thank you
♥FWR Media Posted October 5, 2009 Posted October 5, 2009 I have completed the process of Upgrading osC from 2.2 MS2 to 2.2 RC2a due to my host upgrading mysql. I have most of the store running ok, I think, but I cannot get an admin area, all I get is a white screen and "done" on the lower left corner. I had three contributions in the admin area, and at this point I would even consider re-installing whatever I need to to get back working again. The contribs were Easypopulate, FCKeditor, and one that made tabs of the different input areas. (don't remember the name) Is there a way to just start over with just the admin area without affecting all my work on the "customer area" of the store? Is there a way to trace through and find what I am missing on the admin area so that I can get it back running? Please help. Thank you Admin is totally seperate from the front end so theoretically you could dump your existing admin (retaining admin/includes/configure.php) and simply upload a brand new RC2a admin replacing the configure.php with the one you saved. However .. although you say you haven't modded admin much, many front end contributions do alter admin files, there is also the consideration of the admin log in system which requires extra database tables. The white screen will no doubt be due to a suppressed error (osCommerce suppresses notices) so it may be a start to open up admin/includes/application_top.php find .. error_reporting(E_ALL & ~E_NOTICE); and temporarily change it to .. //error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL); And see if you can spot the error that is stopping the page from parsing. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
WU8V Posted October 5, 2009 Author Posted October 5, 2009 Thank you very much for your reply, I have replaced the code as suggested, and still there is nothing but white screen. No error messages. This leads me to believe that there is something wrong with application_top.php, or something that calls it. One comment that you made regarding a login system, I do not have an administrative area in the database that I found, and there is no login.php that I can find. Is there someting that I missed in the update regarding the login of administrator? I have removed all htaccess controls that I can find for the moment, thinking that there may be something in there that is blocking up the works. Any other suggestions as to where I might look? Thanks again, Kurt Admin is totally seperate from the front end so theoretically you could dump your existing admin (retaining admin/includes/configure.php) and simply upload a brand new RC2a admin replacing the configure.php with the one you saved. However .. although you say you haven't modded admin much, many front end contributions do alter admin files, there is also the consideration of the admin log in system which requires extra database tables. The white screen will no doubt be due to a suppressed error (osCommerce suppresses notices) so it may be a start to open up admin/includes/application_top.php find .. error_reporting(E_ALL & ~E_NOTICE); and temporarily change it to .. //error_reporting(E_ALL & ~E_NOTICE); error_reporting(E_ALL); And see if you can spot the error that is stopping the page from parsing.
Guest Posted October 5, 2009 Posted October 5, 2009 See if you can view any of the other admin pages such as admin/whos_online.php. If you can view that page then you know the problem is in admin/index.php. If you can not view any of the pages then your problem is most likely in a file such as admin/includes/application_top.php or another file in the includes folder.
♥FWR Media Posted October 5, 2009 Posted October 5, 2009 What Peter said. Then if still no go do the following: - Add the following function to admin/includes/functions/general.php at the bottom just before the closing ?> function fwr_walkdown( $file = ' No file provided', $line = ' No line provided', $message = ' No message provided', $exit = false ) { $output = 'File: ' . $file . '<br />' . PHP_EOL; $output .= 'Line: ' . $line . '<br />' . PHP_EOL; $output .= 'Message: ' . $message . '<br />' . PHP_EOL; echo $output; if ( false !== $exit ) { exit; } } Now in admin/includes/application_top.php you can put loads of the following in strategic positions down the file so that we can see where the script dies. fwr_walkdown( __FILE__, __LINE__, 'My message to me', false ); "My message to me" just allows you to put in a comment to yourself like e.g. "just below where languages are called" if the last bit after your message is set to true .. like .. fwr_walkdown( __FILE__, __LINE__, 'My message to me', true ); The script will halt/exit at this point. Hope it helps Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
WU8V Posted October 6, 2009 Author Posted October 6, 2009 Ok, I have tried to get the whos_online on the screen, but no joy. That would indicate to me as peter says that there is something wrong with application_top...or so I would think.... I pit the "walkdown" function into general.php as advised, and put a line in the very top of application_top.php, and there was nothing displayed....soooo... I put a line at the very top of /admin/index.php, and still no line... that would tell me that there is something wrong before I even get to the index file? I have seen reference to a login.php file...is that for 2.2rc2a? I do not have any sort of login file, or administration table on the database. Whatever I am missing here, I think now that it is very basic, and all of this will fall in line once I get the "X" factor figured out... I just don't know where to start looking. I thought that tracer function was going to hit the mark, but the index.php does not even seem to start. I am looking forward to any advice. Thanks again and regards...
WU8V Posted October 6, 2009 Author Posted October 6, 2009 I have added some simple echo lines to the index.php, and found that the index file itself is loading, but the command is after the require app top line it fails....sooooo... I put an echo line at the top of the application top, and it does not show, so I think that the problem is in calling application top, or something from the includes directory.. Some progress I guess, but I don't know why it is not taking the application top file. Suggestions? Thanks again, Kurt
WU8V Posted October 6, 2009 Author Posted October 6, 2009 Another update. I have tracked down a likely culprit as the /includes/functions/html_output.php the application_top stops after it tries to load this file I put an echo in the html_output file and tried to open it directly, and it stops even before the echo (just at the end of the commented lines at the top) Still smashing away at it. Kurt
♥FWR Media Posted October 6, 2009 Posted October 6, 2009 and put a line in the very top of application_top.php The walkdown function is in includes/functions/general.php which is loaded in application_top you can't call the function before it is loaded .. to test the top of application_top.php the function would have to be at the top of application_top.php. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
WU8V Posted October 7, 2009 Author Posted October 7, 2009 I think that this whole thing is boiling down to a naming issue from when my "host" "upgraded" their servers. Did I read somewhere that there was no longer a intro screen to the admin section with this new version? Does that mean that the admin application goes directlu to categories.php instead of index.php? Getting closer I think... Regards, Kurt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.