[fixed] Error Creating/Modifying Albums with 9.1.2.1
Skriv ny tråd   Denne tråd er låst, du kan ikke rette eller besvare indlæg.   Printvenlig side     Forum indeksCoppermine
Forfatter Besked
layingback
Forum Admin


Indmeldt: Apr 19, 2004
Indlæg: 746

IndlægTråd: [fixed] Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 12:36 am
Besvar, med citat

I have 2 separate sites at 9.1.2 (both upgrades) and both exhibit this same problem...

Logged in as both a user and as an admin selecting Admin > Coppermine then Albums & Go (or Photo Gallery > Create/Order My Albums) I get:

Code:
CMS Warning line 75: On /index.php?name=coppermine&file=albmgr While executing query "SELECT aid, title, pos, 
description, thumb FROM jbs_cpg_albums WHERE category = ORDER BY pos ASC" the following error occured: You have 
an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use 
near 'ORDER BY pos ASC' at line 1 In: /home/homes12/public_html/modules/coppermine/albmgr.php on line: 112

Clearly $cat is '' (empty) at this point. An echo statement at entry point of modules/coppermine/albmgnr.php shows that $cat had a 0 value on entry if I was logged in as Admin & user. So why did it become ''?

If I log in only as a user then Photo Gallery > Create/Order My Albums works fine. (But this doesn't help in creating a site album.)

Admin Album create worked fine before upgrade to 9.1.2.

Any ideas?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.4.21 - 2.6.22 / 1.3.39 - 2.2.8 / 4.4.7 - 5.2.5 / 9.1.2.1 - 9.2.1
Tilbage til toppen
Vis brugerens profil Besøg brugerens webside
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: update to 9.1.2.1, cant add cpg albums anymore?
Skrevet: Ons Mar 21, 2007 12:49 pm
Besvar, med citat

hi there!
the update to 9.1.2.1 went smoothly, everything works, except i cant add cpg albums anymore? deleting and eduiting albums works fine, also i am able to add categories, but not albums, this used to work before.

if i run:
Code:
http://www.mydomain.de/index.php?name=coppermine&file=albmgr
the error is:

Code:
A database error has occurred
The webmaster has been notified of the error

i turned on debug, but there is no more info then the message above. also i do not get any further info about this error at all.

hmm..


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
Gallowglas
Nice poster


Indmeldt: Nov 13, 2004
Indlæg: 89
Geografisk sted: Germany

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 5:47 pm
Besvar, med citat

Same problem here on an fresh install ...

Code:
CMS Warning line 75: On /index.php?name=coppermine&file=albmgr While executing query 
"SELECT aid, title, pos, description, thumb FROM cms_cpg_albums WHERE category = ORDER BY 
pos ASC" the following error occured: You have an error in your SQL syntax. Check the manual 
that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY pos ASC' 
at line 1 In: /homepages/29/d72673074/htdocs/GDI-Net/modules/coppermine/albmgr.php on line: 111

_________________
>>> German Dragonfly - Team

Gallowglas's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.0.25-5.0.18/4.4.7-5.2.1/9.0.6.1-9.1.2.5
Tilbage til toppen
Vis brugerens profil Besøg brugerens webside
sarah
Debugger


Indmeldt: Mar 25, 2005
Indlæg: 2131

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 5:57 pm
Besvar, med citat

I've reproduced it, but haven't found the cause yet. Something is messing with $cat and it's not populated. This file has basically no changes, so I'm on a wondrous journey of coppermine mysteries.

I did kludgily make a workaround by repeating to read the GET and POST right above that query...

_________________
Diagon Alley - Top Design

sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
Tilbage til toppen
Vis brugerens profil Send e-mail til bruger Besøg brugerens webside
layingback
Forum Admin


Indmeldt: Apr 19, 2004
Indlæg: 746

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 6:05 pm
Besvar, med citat

Sarah, Welcome to my problem!

Digging myself and getting confused. Extra info: on 9.1.1.1CVS Admin only login fails with same db crash, but ok if logged in as user as well. So problem occurred in 9.1.1.1 but has grown in 9.1.2.1.

Agreed albmgr.php has had little changed. But look at index.php. Mass of changes related to $cat! But it gets better...

If you call index.php?name=coppermine&file=index.php rather than albmgr.php it accesses the categories fine. Reason is there are 2 functions called get_subcat_data(), 1 in albmgr.php and 1 in index.php. And they have different parameters Trist

So it looks to me as if Nano updated function in index.php, making albmgr.php redundant and out-dated, but missed the HTML link calls to it...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.4.21 - 2.6.22 / 1.3.39 - 2.2.8 / 4.4.7 - 5.2.5 / 9.1.2.1 - 9.2.1
Tilbage til toppen
Vis brugerens profil Besøg brugerens webside
Phoenix
Site Admin


Indmeldt: Apr 19, 2004
Indlæg: 8598
Geografisk sted: Netizen

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 6:16 pm
Besvar, med citat

Nano is aware and as yet, can't find why it should be so - he has speculated that something else may be interfering with $cat.
_________________
AdvertisingResources


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Tilbage til toppen
Vis brugerens profil Besøg brugerens webside
sarah
Debugger


Indmeldt: Mar 25, 2005
Indlæg: 2131

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 6:26 pm
Besvar, med citat

functions.inc has a lot of changes... those new functions at the bottom.

The urls are constructed fine, even if you type in a properly constructed url you can see with debug on there is no cat in the GET. If I force that GET to be gotten again right before the query then it all works.

It should just be a matter of echoing $cat on a million different lines and see where it gets lost.

_________________
Diagon Alley - Top Design

sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
Tilbage til toppen
Vis brugerens profil Send e-mail til bruger Besøg brugerens webside
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 6:58 pm
Besvar, med citat

aha, some progress here, thx folx!
well, albmgr.php cant be the problem, i tried using the previous one and problem persisted.

to me it looks there is something wrong with the mysql database tables infact of albums, but what do i know..

have there been security fixes to the cpg stuff at all? if not, i wonder if we couldnt simply use the old cpg modules, but i didnt have he guts yet to do it.

any help appreciated, i just installed dragonfly 4 weeks ago, and now this. oh well..


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
sarah
Debugger


Indmeldt: Mar 25, 2005
Indlæg: 2131

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Ons Mar 21, 2007 7:10 pm
Besvar, med citat

There's been major changes to coppermine in the new release, nothing good will come of mixing the files.

It's not a database error, it's this one variable. I'll find it soon

_________________
Diagon Alley - Top Design

sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
Tilbage til toppen
Vis brugerens profil Send e-mail til bruger Besøg brugerens webside
sarah
Debugger


Indmeldt: Mar 25, 2005
Indlæg: 2131

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 12:46 am
Besvar, med citat

Hey Nano or Maze or anyone,

Is there anything wrong with adding this again around line 107 of albmgr.php?

Code:
$cat = intval(isset($_POST['cat']) ? $_POST['cat'] : (isset($_GET['cat']) ? $_GET['cat'] : 0));

It doesn't seem like the best way to do it, however, it does seem to fix it. Then again, as usual in coppermine I'm never totally sure if I broke something when fixing something else. It's like Whack-a-Mole.

None of my print_r in this file even work. I'm having a hard time finding where $cat gets lost. But it does work if I re-GET it right before the query.

_________________
Diagon Alley - Top Design

sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
Tilbage til toppen
Vis brugerens profil Send e-mail til bruger Besøg brugerens webside
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 10:46 am
Besvar, med citat

well, i (and probably many others) dont care much about new features, but about security. thats why we use cpgnuke and not phpnuke.

so please make sure the changes are secure!
thanks.

have there been security issues in he previous release of cpgnuke? i wonder if it would be beter to switch back to the previous version for the time beeing, until this release is tested?


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
Phoenix
Site Admin


Indmeldt: Apr 19, 2004
Indlæg: 8598
Geografisk sted: Netizen

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 10:57 am
Besvar, med citat

The last release of cpgnuke was over 2 years ago. There is no cpgnuke 9.1.2.1.

Most users actually do care about new features - that's what drives progress. Security has always been the first priority of cpgnuke and DragonflyCMS development. On what basis are you raising the prospect of a security issue?

Nano has figured it out, as expected, and it has nothing to do with security and will provide the fix shortly.

_________________
AdvertisingResources


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Tilbage til toppen
Vis brugerens profil Besøg brugerens webside
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 11:22 am
Besvar, med citat

Phoenix wrote:
The last release of cpgnuke was over 2 years ago. There is no cpgnuke 9.1.2.1.
well, OK, it has been renamed to dragonfly, though.. you know what i mean.
the domain is still called cpgnuke.com, and btw, on your mainpage it tells "DragonflyCMS 9.1.2.1 Released" and the post is dated january 8th. this is a little confusing. it did also read january 8th as i downloaded the previous dragonfly release some weeks ago.
Phoenix wrote:

Most users actually do care about new features - that's what drives progress. Security has always been the first priority of cpgnuke and DragonflyCMS development. On what basis are you raising the prospect of a security issue?
well, if a developer posts he is unsure if the fix he provided is correct or not, and fears it might break something else, that does not sound very reliable. you should discuss such things internally in a developer corner, and not to the public audience.
just my 2 cents Vinker
Phoenix wrote:

Nano has figured it out, as expected, and it has nothing to do with security and will provide the fix shortly.
thanks.


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 1:27 pm
Besvar, med citat

oh, just btw.. it would be nice if you put a note on the mainpage about this problem, so it avoids some headache to other users.
those who can live without new albums for a while feel free to upgrade, those who dont better wait a few days/hours - however it takes. take your time.

IMHO this is the only bug in the new release, everything else is actually working as it should Meget glad


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
hdsoltau
Newbie


Indmeldt: Mar 21, 2007
Indlæg: 44

IndlægTråd: Re: Error Creating/Modifying Albums with 9.1.2.1
Skrevet: Tor Mar 22, 2007 2:15 pm
Besvar, med citat

sarah wrote:

Code:
$cat = intval(isset($_POST['cat']) ? $_POST['cat'] : (isset($_GET['cat']) ? $_GET['cat'] : 0));
just bumped that code in on a ocal test machine and it seems to work, thx sofar.
i will report back if anything breaks.


hdsoltau's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Solaris/1.3.31/5.x/5.x/9.1.2.1
Tilbage til toppen
Vis brugerens profil
Vis ikke tråde ældre end:   
Skriv ny tråd   Denne tråd er låst, du kan ikke rette eller besvare indlæg.   Printvenlig side     Forum indeksCoppermine Alle tidspunkter er GMT
Gå til side 1, 2, 3, 4, 5, 6, 7  Næste
Side 1 af 7


Gå til:  
Du kan ikke skrive nye indlæg i dette forum
Du kan ikke besvare indlæg i dette forum
Du kan ikke rette dine indlæg i dette forum
Du kan ikke slette dine indlæg i dette forum
Du kan ikke stemme på afstemninger i dette forum
Du kan ikke tilføje filer i dette forum
Du kan ikke downloade filer fra dette forum

stopsoftwarepatents.eu petition banner
User Info [x]

Velkommen Gæst

Brugernavn
Kodeord
(Registrer)

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Dansk
Deutsch
Eesti
Italia
Norsk

Testimonials [x]
I just did the phpNuke 7.4 to CPG-Nuke CVS conversion. Was very easy. ... Found everything I needed to help me along the way with a few searches.
The most unexpected and best thing I have found after switching was the increased speed. I used to think I needed to change hosts--since switching to CPG-Nuke all my users have commented on how much faster pages load

Whit

i was running phpnuke and have almost 30,000 members apache and sql both running at 99% usage, server crashed when 50 ppl online, Host wanted me off shared hosting as many customers complaining i was crashing a p4 3.2 with 2gig ram, i converted to cpg and now i have less than a 50% server load cpg saved me $300 USD a month offshore dedicated servers cost $$ thx guys
one decision i dont regreat is CPGNUKE

Korben
www.datastreamz.net
It's like this - I was working with Oldsmobiles when I was workin with HTML. Then I moved up to Mazda's and Audi's with PHP Nuke. But now my friends I am riding in style with Benz's and Porche's. The diffrence is that noticable immediatly. The Install is so simple once you get it and the site is so secure its like fort knox. Thank you - And you all can expect to see alot more of me around - suggesting ideas and helping where I can. Peace out all - and enjoy newbies. It's really worth it to use CPGNuke.
- Kid_Creation

One thing I've noticed about CPG-Nuke... it is fast and clean. Impressive. One of my 'customers' liked it so much she wanted everything changed to CPG-Nuke!
- valis
awebware.com

The conversion from phpNuke 7.4 to CPG-Nuke (CVS) was a piece of cake. The data conversion took about two hours. Hit a few snags--but nothing a few forum searches couldn't fix. Probably the best compliment I got from my users--"Did you change hosts?" The speed improvement over phpNuke is quite noticable. Kudos to the developement team! Thanks for helping me get away from the phpNuke tease.
- Whit
endofropegang.com

Thanks for the Great program! I never regret migrating from PhpNuke. My site is so much faster and more secure. Now I spend time managing my site instead of the site software. Keep up the good work!
- Rod
www.gentle.org

Now that we are running CPG Nuke this is the first time I've travelled without having to worry about hacking, monitoring the site daily, etc. Thanks for CPG Nuke and everyone that made it possible. We are running a consumer advocacy site at householdwatch.com and the site is very busy. CPG Nuke is doing the job and doing it well.
NukeFind

CPG is Fast, Secure & Free Since installing it's been much easier to work with as an admin. Better admin features but not as many modules that phpnuke offers. Built for speed and reliability. Admin of 3 prominent sites that combined receive 6 million hits annually. CPGnuke is hands down the best CMS out there.
- djdevon3

I just made the switch to CPG, from phpNuke.
The install was easy, simple when following well written instructions. My site has dramatically increased in speed, it really is a day and nite difference.
Thanks to everyone who is a part of the CPG-Nuke project and for offering this CMS as a great alternative to the other *Nukes.
I look forward to being a part of the community.
Kristin
"I made the switch!"

I managed to stumble onto this remake of phpnuke type CMS and have been VERY pleased ever since... I'm very glad it's the system I'm using to make a web site.
4est
Great sense of community around CPG Nuke! Thanks for your hard work Cheers!
roRisc
To the Dev team. You guys rock keep up the good work. Hopefully I'll get good enough at this quickly so that I'll be able to start posting some solutions and tips as well. Cup-A-Cino
I want to thank everyone who help me to build my cpgnuke, know the final layout look great, makes the user want to register.....thanks alot guys
TRANCEBUDHA
Hey thanks for the quick replies..hehe.. ya I am trying to check out cpg-nuke on the same server.. anyways.. www.sizzle.no-ip.com /ufo just a test site main php-nuke is www.sizzle.no-ip.com and forums www.sizzle.no-ip.com /forums It seems so far that cpg-nuke is quit a bit faster than php-nuke.. thanks again
sixpack
CPG-Nuke and its support community ROCKS!
James D Kirk
CPGNuke is making phpnuke look like hammered dog-crap so far...
Persistence
Just installed the latest version of CPG and I'm lovin' it!
square
love CPG!
Mecro
man i just took a look at the demo ADMIN and you guys truly did a remarkable job.. this blows PHPNuke away...
dirtbag
Thank You, cpgnuke. Thank You All that are behind that wonderful script.
Truden
Excellent Coppermine with safemod :) Work fine with safemod nice Job
Reha
Thank You, cpgnuke. I am amazed at what CPG Nuke has to offer...
JamesSelvage
Great site. Great software.
ShermD3
Well I got my first CPGNuke site up! (huzzah?) I must say of the 5 site I run, 4 of which are PHP-Nuke sites I'm most impressed
GeoffM
This install was SOOO smooth. Great job guys! I love it!
dcorwin
Hey CPG-Nuke Dev Team!! Wow!!!!...pretty much sums it up. I love cpgnuke and I've only had it a couple days now.
sabione
Great system you developed here. Thanks !
cwweb

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Side Generering tog 0.3536 sekunder og 19 Database Opkald på 0.0401 sekunder
Memory Usage: 3.38 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy