I deleted a theme (I forgot to deactivate it first!), so now, then I want to install/activate it, I can't click anything as there is no link for that theme!
I was wondering if there is any trick to make it selectable in the admin plugin menu.
thanks in advance 
Gallery version (not just "2"):2.2.2
PHP version (e.g. 5.1.6):4.4.7
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 1.3.39
Database (e.g. MySql 5.0.32): MySql 4.1.22-standard-log
Activated toolkits (e.g. NetPbm, GD): all but video support
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Firefox 2.0.0.12
--
Alejandro Matos
Blog
Gallery
Posts: 47
I add a screen so you can understand what I mean
--
Alejandro Matos
Blog
Gallery
Posts: 47
Please, any help?
I've tried to put the files back, but I still don't have the option to uninstall/deactivate que theme, so I can't upgrade!
ANY ideas are welcomed
thanks in advance ;)
--
Alejandro Matos
Blog
Gallery
Posts: 39
The version is 3.0.0, but the updated ver. is 3.1.0
Try to upgrade the theme
http://www.yufoto.com
Posts: 47
I did what you told me, so both versions installed and version are the same, but still I can't activate/install/uninstall it. I want to install version 3.1.0 but there is no way to fix this
Maybe a mysql querry? don't know...
--
Alejandro Matos
Blog
Gallery
Posts: 32509
is there any javascript error when viewing the site admin -> plugins page?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
Only if I change the name of the theme via ftp ;) (actually, it's a php error)
Otherwise...no, no error at all
--
Alejandro Matos
Blog
Gallery
Posts: 32509
if you were using the current nightly snapshot, i'd recommend the following procedure:
1. find out the current state of the vSlider3 theme
2. if you're ok to lose the current theme settings (they will be defaulted on the next theme installation), manually uninstall the theme
3. reinstall the theme
to find out the current state, you can look at the html source code of the admin plugins page.
use firefox to display the html source and to search the html for "vSlider3". there should be some javascript array with its current state.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
nightly snapshot? is that like the lastest version of gallery?
1.- Currently "installed" is 3.0. But as I can't manage it... =/
2.- How do I manually uninstall the theme? :S
In the source, I see a lot of code with vslider on it...but not really sure what to do about it *ashamed*
--
Alejandro Matos
Blog
Gallery
Posts: 32509
look for:
updatePluginState('theme', 'vSlider3',
and for:
pluginData["theme"]["vSlider3"] =
and copy and paste the complete lines here.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
<script type="text/javascript"> updatePluginState('theme', 'vSlider3', 'active', false); </script>and
pluginData["theme"]["vSlider3"] = { "name" : "vSlider 3", "deletable" : 1, "state" : "active" };Just to notice: I grabbed the text from firefox, not from a file (I hope you asked me the code from ff)
--
Alejandro Matos
Blog
Gallery
Posts: 47
So, what am I supposed to do with those lines? =/
thanks again...
--
Alejandro Matos
Blog
Gallery
Posts: 47
Uhmmm, help please?
--
Alejandro Matos
Blog
Gallery
Posts: 32509
in g2.3 / nightly snapshots of g2.3, you could set your gallery into maintenance mode and then request the following url.
in g2.2, you need to do a manual step first:
in firefox, look at the html source of the "site admin -> plugins" page and look for a line like:
<input type="hidden" name="g2_authToken" value="16ce1232d674"/>
the part "16ce1232d674" will be different in your case. you need that part.
then enter this URL in your browser (add your gallery2/ address in front of it) and add your own authToken at the end
main.php?g2_view=core.PluginCallback&g2_pluginId=vSlider3&g2_pluginType=theme&g2_command=uninstall&g2_authToken=PUT_AUTH_TOKEN_HERE
e.g. with my current authToken of 16ce1232d674, it would be:
main.php?g2_view=core.PluginCallback&g2_pluginId=vSlider3&g2_pluginType=theme&g2_command=uninstall&g2_authToken=16ce1232d674
but you need to use your own authToken.
that request should uninstall the vSlider3 theme.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
Ok I followed your indications but it seems that something is wrong. I copied and pasted my code into the address bar (I checked twice!).
Authentication Failure Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in. Back to the Gallery Error Detail - Error (ERROR_REQUEST_FORGED) * in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error) * in main.php at line 402 (gallerycontroller::assertisgenuinerequest) * in main.php at line 94 * in main.php at line 83 System Information Gallery version 2.2.4 PHP version 4.4.7 cgi Webserver Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP-CGI/0.1b Database mysqlt 4.1.22-standard-log Toolkits ImageMagick, Thumbnail, NetPBM, Gd Operating system Linux shared4.ultrawhb.com 2.6.24.2.dn.am #1 SMP Mon Feb 11 17:40:32 EST 2008 i686 Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12I logged out and in again as the first line says, but still the same problem =/
Any hint?
Again, thanks for the help...
--
Alejandro Matos
Blog
Gallery
Posts: 32509
> Error (ERROR_REQUEST_FORGED)
that happens if the authToken value is wrong. logout, login again, repeat the procedure (copy authToken from html source).
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
Ok, logged out, logged in and then checked the new code and what I got was this:
{"status":"redirect","redirect":"\/galeria\/main.php","states":[],"deleted":[]}But the theme is still there without any link to click, please see the attachment (done after pasting the url you mentioned before)
--
Alejandro Matos
Blog
Gallery
Posts: 47
I've tried several times now, but it seams that the theme is still there.
Anyone?
--
Alejandro Matos
Blog
Gallery
Posts: 32509
must be a weird bug, maybe related to the vslider3 theme.
can i download that theme somewhere to see if i get the same problem?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
there you go: http://irui.ac/cool-stuff/vslider3
--
Alejandro Matos
Blog
Gallery
Posts: 32509
lol, sorry, if it's really what i think it is then this is ridiculous and a huge waste of your time.
the only scneario where g2 disables all plugin actions for a theme is when the theme is used as default theme. you're not allowed to uninstall the default theme.
so go to "site admin -> themes" and change the default theme to another one.
once that's done, you should be able to uninstall the slider theme at site admin -> plugins.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 47
lol you were right! right after I set other theme as default, I could uninstall it!
thank you VERY MUCH for your help :D
now it works perfect!!
--
Alejandro Matos
Blog
Gallery