"Edit ENUM/SET values" is not working/not opening popup box i tried in both XAMPP versions of "7.4.30", 8.0.23", "8.1.10" - xampp

enter image description here
enter image description here
I am using Windows 11.
I am trying to create one table with columns below like this(this Preview SQL)
CREATE TABLE sample.users (id INT NOT NULL AUTO_INCREMENT , username VARCHAR(100) NOT NULL , email VARCHAR(100) NOT NULL , gender SET NOT NULL , PRIMARY KEY (id)) ENGINE = InnoDB;
And I am trying to create type "SET" column. And I am trying to click on "Edit ENUM/SET values" But it's not opening the popup box to enter the values. And when I tried to save this its showing some popup error.
I tried XAMPP version of "7.4.30 / PHP 7.4.30", "8.0.23 / PHP 8.0.23", "8.1.10 / PHP 8.1.10". But all are same problem.
I want/expect how to fix this issues.

Related

invalid identifier problem in oracle livesql

i have a pretty simple code just to see if my value that i insert into a column works but i am stuck with invalid identifier problem
create table person(
ID_NO varchar(15),
datelend DATE,
constraint person_name_PK primary key(ID_NO));
insert into person(ID_NO,datelend) values('sahil','2018-01-25');
select* from person;
it shows that "ID_NO" is an invalid identifier and that name is already being used by an existing object.
Your code works (although you probably want to insert a DATE literal rather than a string literal in your INSERT statement):
create table person(
ID_NO varchar(15),
datelend DATE,
constraint person_name_PK primary key(ID_NO)
);
insert into person(ID_NO,datelend) values ('sahil', DATE '2018-01-25');
select * from person;
If it is not working in LiveSQL then you have probably already created the person table without the column. You can click on the "Actions" button on the SQL Worksheet and click "View Session" to see what commands you have already issued and, if you need to, you could click "Reset Session" to clear everything and then you can run your script and build the table without any existing objects to create a conflict.

Two sites using different userdata but the same session domain in Codeigniter

I'm using Codeigniter. I have 2 sites, they look like that:
http://example.com/system/
http://example.com/system2/
These two systems have different userdata. In first site, I haven't set a parameter class, but in the second I've set it. When user first open http://example.com/system/ and then open
http://example.com/system2/ it's showing error message: undefined index class. Both sites in session domain is: example.com.
How to make to have different session? Maybe I have to set different domain in session? I haven't set it before, how to do that?
On each system use database and change the database name as well as the cookie name in config.php
$config['sess_table_name'] = 'system_x_session';
$config['sess_cookie_name'] = 'system_x_cookie';
where x is your system number or you can name it any name
don't forget to create the two tables in your database
CREATE TABLE IF NOT EXISTS `system_x_session` (
session_id varchar(40) DEFAULT '0' NOT NULL,
ip_address varchar(45) DEFAULT '0' NOT NULL,
user_agent varchar(120) NOT NULL,
last_activity int(10) unsigned DEFAULT 0 NOT NULL,
user_data text NOT NULL,
PRIMARY KEY (session_id),
KEY `last_activity_idx` (`last_activity`)
);
this will make your sessions independent from each other and you can check their content with phpmyadmin and the likes
hope that helps

Oracle / SQL Developer displaying (null) in column

I have any oracle table that sometimes has valid null values is some cells. In SQL Developer it displays in the null cell as (null). This is not a problem but in a grid I have on a jsp page is also displays as (null) and I need it just to be blank. NVL does not work unless I use a space. I was wondering if there is an oracle setting or something to have valid null cells just be blank ? thank you
Modifying SQL Developer Preferences
Jeff Smith, the product manager for SQL Developer, blogged about this here, http://www.thatjeffsmith.com.
Just navigate to the SQL Developer tool bar as follows:
Preferences>Database>Advanced
and change the value in the field, "Display Null Value As", to nothing as seen here:
~~~~~~~~~~~~~~~~~~~~~~~~~~
With a jsp, one could create a method for scenarios where a column is null (to display the null as other than '(null)').

PyroCMS Using 2.0 Issue with registering new users persists after upgrade

I get the following error when registering a new user ( not from the admin end)
as a fix , I tried updating to 2.1 but that didnt solve it.. it is worth noting that the registration form shows only 3 fields :
Email, Password and First name ..
I realize it has to do with a setting somewhere but would love any advice to help me save some time.
Thanks
Either run this query:
ALTER TABLE `default_profiles` CHANGE `last_name` `last_name` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
Or on the control panel go to settings->users and try changing "require last names"
Did you change the available profile fields?
Are you running a clean install of 2.1 or did you upgrade?
Just set the default value for the lastname field in the 'Default_profiles' table. Then it will work fine.

IONIZE CMS post installation problem

I decided to try Ionize cms which is build over CodeIgnitor. I have my apache, php , mysql installed seperately. When I finished installing the cms successfully, I cannot access the website. Some weird errors occurs like
Call to a member function num_rows() on a non-object in ... \ionize-0.9\application\models\article_model.php on line 224
I got frustated and searched many places. Later I tested the CMS in WAMP, and there it worked.
Now I have no idea, what is going on, everything the CMS needs to run, is tested during the installation. I dont have any idea.... how to solve it. Please help me
For one unknown reason, all the tables of the database weren't installed. Ionize currently doesn't check that situation. If it works on one server (Wamp) and not on one other (manually LAMP installed server), compare the tables list on each system.
I had this same issue on a WAMP server and the reason was that it couldn't created the article_type table.
I'd suggest checking your database to see if that table exist.
If it doesn't take a look at the data.sql file and try to run only that create table section. It should spit out an error. In my case the description text NOT NULL default "" was throwing an error (BLOB/TEXT column 'description can't have a default value).
I fixed it by making sure description doesn't have a default value.
CREATE TABLE IF NOT EXISTS article_type (
id_type int(11) unsigned NOT NULL auto_increment,
type varchar(50) collate utf8_unicode_ci NOT NULL,
ordering int(11) default 0,
description text NOT NULL,
type_flag TINYINT( 1 ) NOT NULL default 0,
PRIMARY KEY (id_type)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 COMMENT='0.9.7';

Resources