Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, January 28, 2023
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  phpMyEditSetup: Undefined index/variable

phpMyEdit Installation     phpMyEditSetup: Undefined index/variable
Post new topic   Reply to topic   Goto page 1, 2, 3, 4, 5, 6  Next  
 
Corrado     Joined: 15 Nov 2009   Posts: 1  
Post Posted: 2009-11-15 23:20
Back to top  Reply with quote     

Win XP PRO
EasyPHP 5.3.0
phpMyEdit 5.7.1

Hi,
when I call:

http://127.0.0.1/phpMyEdit/phpMyEditSetup.php

I obtain the following errors:

Notice: Undefined index: db in C:\Programmi\EasyPHP5.3.0\phpMyEdit\phpMyEditSetup.php on line 65
Notice: Undefined index: tb in C:\Programmi\EasyPHP5.3.0\phpMyEdit\phpMyEditSetup.php on line 66
Notice: Undefined variable: db in C:\Programmi\EasyPHP5.3.0\phpMyEdit\phpMyEditSetup.php on line 189
Notice: Undefined variable: tb in C:\Programmi\EasyPHP5.3.0\phpMyEdit\phpMyEditSetup.php on line 192

If I insert Hostname, Username, Password, Database, Table my Apache crashs.

How can I solve these errors.

Many thanks.

 
JonBFL     Joined: 14 Dec 2009   Posts: 1  
Post Posted: 2009-12-14 22:18
Back to top  Reply with quote     

Basically "me tooo" on those errors.

Notice: Undefined index: db in C:\wamp\www\phpMyEdit-5.7.1\phpMyEditSetup.php on line 65

Notice: Undefined index: tb in C:\wamp\www\phpMyEdit-5.7.1\phpMyEditSetup.php on line 66

Please log in to your MySQL database

Notice: Undefined variable: db in C:\wamp\www\phpMyEdit-5.7.1\phpMyEditSetup.php on line 189

Notice: Undefined variable: tb in C:\wamp\www\phpMyEdit-5.7.1\phpMyEditSetup.php on line 192

When I do login as root - and submit

I get to the database screen - no problems -
<submit>

I get the Table Selection screen -
Notice: Undefined index: tb in C:\wamp\www\phpMyEdit-5.7.1\phpMyEditSetup.php on line 66

although my table DOES appear.

Every Time my WAMP server crashes.

Apache 2.2.11
PHP 5.3.0
MySQL 5.1.36
Win XP Pro SP3

Using Localhost = MySQL user 'root' no PW. Just testing at this point...

Seems like a cool script - I just need to get the bugger to fly right.

 
ji394su30935     Joined: 22 Jul 2010   Posts: 1  
Post Posted: 2010-07-22 23:57
Back to top  Reply with quote     

Why isn't anyone replying this topic. I also have to same problem. PLEASE, anyone out there answer this question.

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-07-24 19:12
Back to top  Reply with quote     

My personal experience with Apache 2.2.11 on Windows is that it doesn't play well with PHP's .DLL files. In fact, I'd recommend people NOT put the latest versions of Apache (use 2.0.x non 2.2) or PHP on Windows. Few people on the planet do this, and when obscure bugs exist, it takes months for them to get reported and fixed. Doubly true if using 64-bit Windows 7.

To avoid the "Notice: Undefined index:" warnings, try setting the errorlevel in the script as
error_reporting(E_ALL & ~E_NOTICE);

 
ibiangalex     Joined: 13 Oct 2010   Posts: 1  
Post Posted: 2010-10-13 09:25
Back to top  Reply with quote     

I am using a Wampserver version 2.0 and when I called the phpedit setup the same undefined index error surfaced. Suppressing the error levels does not necessarily mean that the Apache server would stop crashing.

Can somebody please suggest a solution to solve this problem.

Many thanks

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-10-13 13:27
Back to top  Reply with quote     

Edit the setup script an set the values of $tb and $db.

 
glenleslie     Joined: 10 Nov 2009   Posts: 5  
Post Posted: 2011-08-28 06:11
Back to top  Reply with quote     

doug wrote:
Edit the setup script an set the values of $tb and $db.


i happened to stumble on Uniform Server (a Windows WAMPServer alternative) and it works fine with phpEdit - http://www.uniformserver.com/ .

WampServer 2.0 and 2.1e - both 32 bit and 64 bit are not happy with the phpMyEditSetup.php script on my system (Win7 Pro, 64 bit). I guess it could be DLL woes but seems more likely it's a php, mysql or apache module not included or config'd just so?

phpMyEdit is now 2 - 4 years old (depending on which site you link through you get phpMyEdit 5.6 or 5.7.1... it took me a couple of days before I found out I had 5.6 and that 5.7.1 is out) so maybe a deprecated call somewhere?

Sorry... I'm not a coder, cannot drill down on the issues... it's one of the reasons I'm looking at phpMyEdit in the first place!

Best,

GL

 
sillythings     Joined: 21 Apr 2012   Posts: 1  
Post Posted: 2012-04-21 19:45
Back to top  Reply with quote     

Finally got it to work on windows 7, apache2.2 and latest php.

The problem is php extension for mysql was not turn on. Edit the php.ini file in your php installation folder and enable php_mysql.dll extension.

 
lonabec     Joined: 16 Oct 2012   Posts: 1  
Post Posted: 2012-10-16 16:25
Back to top  Reply with quote     

Actual issue is result of calling a function with empty parameters and having an error returned from PHP. Fix is to modify the existing code to suppress errors by prefixing function call with an @ .

Lines 65 & 66 become:
if(strlen(@$_POST['db'])>0) $db = @$_POST['db'];
if(strlen(@$_POST['tb'])>0) $tb = @$_POST['tb'];

Lines 189 & 192 become:
<td><input type="text" name="db" value="'.@htmlspecialchars($db).'"></td>
td><input type="text" name="tb" value="'.@htmlspecialchars($tb).'"></td>

 
danverseak2     Joined: 07 Sep 2022   Posts: 45  
Post Posted: 2022-09-07 10:16
Back to top  Reply with quote     

Considering it&#8217;s one of the world&#8217;s most livable cities, Vancouver is tough to find fault with.
Sac Mobile Truck Repair

 
robinjack     Joined: 01 Mar 2021   Posts: 2554  
Post Posted: 2022-09-16 14:04
Back to top  Reply with quote     

Exceptional post however , I was wanting to know if you could write a litte more on this topic? I&#8217;d be very thankful if you could elaborate a little bit more. Thanks! gudanglagu123

 
robinjack     Joined: 01 Mar 2021   Posts: 2554  
Post Posted: 2022-09-18 16:14
Back to top  Reply with quote     

This really is such a awesome write-up. I&#8217;ve been looking for this information for quite a while now and then finally stumbled upon your internet site. Thanks so much for posting this, this has helped me out tremendously. By the way I love the style of the blog, looks good, did you create it all by yourself? Amarose

 
topboosterseo     Joined: 24 Jul 2022   Posts: 1656  
Post Posted: 2022-09-25 15:20
Back to top  Reply with quote     

Thank you for sharing with us, I believe this website truly stands out : D. Diaetoxil

 
topboosterseo     Joined: 24 Jul 2022   Posts: 1656  
Post Posted: 2022-09-28 19:36
Back to top  Reply with quote     

I&#8217;ve been meditating on the identical issue personally recently. Pleased to see another person on the same wavelength! Nice article. Heater Pro X

 
robinjack     Joined: 01 Mar 2021   Posts: 2554  
Post Posted: 2022-09-29 10:56
Back to top  Reply with quote     

for those of us who cannot control anger, i think that anger management should be a reuirement to have a quality life,. website link

 
Post new topic   Reply to topic   Goto page 1, 2, 3, 4, 5, 6  Next  

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy