Skip to content

No Edit/Delete actions under Windows local development #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
quantuumsnot opened this issue Mar 2, 2021 · 6 comments
Open

No Edit/Delete actions under Windows local development #27

quantuumsnot opened this issue Mar 2, 2021 · 6 comments

Comments

@quantuumsnot
Copy link

OS: Windows 8 x64
PHP: 8.0.2/7.4.3 x64
phpliteadmin: v1.9.9-dev

Under local Windows development (not tested in Linux) the buttons 'Edit' 'Delete' for each row in a table are missing

@crazy4chrissi
Copy link
Contributor

Is your database writeable? Next to the database on the left, does it say [r] or [rw]?
And is it a table you are viewing or is it the result of a SELECT statement or a view?

@quantuumsnot
Copy link
Author

quantuumsnot commented Mar 28, 2021

Read only mode, interesting since there are no restrictions by OS or 3rd party app
And yes - database is writable (can do INSERT/UPDATE queries), duh

@crazy4chrissi
Copy link
Contributor

You can do INSERT/UPDATE queries from within phpLiteAdmin? Or in sqlite3.exe or through another application?

Keep in mind that phpLiteAdmin accesses your database through the php process (or the webserver process, if php is running as an apache module). PHP may be running under a user which does not have enough permissions whereas sqlite3.exe running under your user may have enough permissions. This is especially likely the case if the database is placed somewhere under your user directory.
Also it is important to know that sqlite always needs write permissions not only on the database, but also on the folder the database file is located in. This is because sqlite needs to write temporary journal files there when updating.

@quantuumsnot
Copy link
Author

From sqlite3.exe, phpliteadmin and my app
PHP is used only with built-in webserver with this command:
php.exe -S 127.0.0.1:65000 -t "D:\myrepo"

@crazy4chrissi
Copy link
Contributor

Hmmm. But we are talking about a table, not a view, right? And you are in the "Browse" tab or "Search" tab of a table, not the "SQL" tab?
Could you post a screenshot?

@quantuumsnot
Copy link
Author

quantuumsnot commented Mar 29, 2021

Yeah, one moment:
missing delete for table row

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants