Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Problems AFTER Install/Upgrade :: Archives ⇒ [fixed]database error has occurred -admin/modules/blocks.php :: Archived


[fixed]database error has occurred -admin/modules/blocks.php :: Archived
Issues that happen after DragonflyCMS upgrade/install.
DO NOT post module installation issues here!

Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Problems AFTER Install/Upgrade

Topic Archived View previous topic :: View next topic  
Author Message
Joos1991
Newbie
Newbie

Offline Offline
Joined: Jan 09, 2007
Posts: 4

PostPosted: Tue Jan 09, 2007 4:06 pm
Post subject: [fixed]database error has occurred -admin/modules/blocks.php

I have a problem, and i can't solve it:

Code::
admin/modules/blocks.php

    * Notice line 432: Undefined index: content
    * Notice line 433: Undefined index: url
    * Notice line 445: Undefined index: in_module
    * Notice line 460: Undefined variable: weight

includes/db/db.php

    * CMS Warning line 75: On /web/admin.php?op=blocks&save=2 While executing query "UPDATE cms_blocks SET weight=weight+1 WHERE weight>= AND bposition='r'" 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 'AND bposition='r'' at line 1 In: /home/railsimulatornl/HTML/web/admin/modules/blocks.php on line: 460

Running on MySQL 4.1.10


Joos1991's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Newest
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jan 09, 2007 4:19 pm
Post subject: Re: A database error has occurred

Yes, there was a small error - please use this file,
dragonflycms.org/cvs/h...php?v=9.27

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Joos1991
Newbie
Newbie

Offline Offline
Joined: Jan 09, 2007
Posts: 4

PostPosted: Tue Jan 09, 2007 4:30 pm
Post subject: Re: A database error has occurred

Thanks, working fine now! Smile


Joos1991's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Newest
Back to top
View user's profile Visit poster's website
BrokenCrust
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 06, 2004
Posts: 503

PostPosted: Thu Jan 11, 2007 7:42 pm
Post subject: Another block error 9.1.1

Moving a block from the right to the left (or I assume other editing of the block) throws an error. Also there are a bunch of notices

Code::
admin\modules\blocks.php

    * Notice line 432: Undefined index: content
    * Notice line 433: Undefined index: url
    * Notice line 445: Undefined index: in_module
    * Notice line 460: Undefined variable: weight

includes\db\db.php

    * CMS Warning line 75: On /admin.php?op=blocks&save=38 While executing query 
"UPDATE cpg_blocks SET weight=weight+1 WHERE weight>= AND bposition='l'" 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 
'AND bposition='l'' at line 1 In: c:\cpgtest\html\admin\modules\blocks.php on line: 460


BrokenCrust please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Jan 11, 2007 8:55 pm
Post subject: Re: Another block error 9.1.1

dragonflycms.org/cvs/h...php?v=9.27

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
BrokenCrust
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 06, 2004
Posts: 503

PostPosted: Thu Jan 11, 2007 9:39 pm
Post subject: Re: Another block error 9.1.1

Sorted. Thank You.


BrokenCrust please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
mrnorton
Newbie
Newbie

Offline Offline
Joined: Jun 21, 2005
Posts: 8

PostPosted: Sun Jan 14, 2007 3:50 pm
Post subject: Moving block left to the right

When I tray to move a block from The left side to the right side I get follow message from debug.

On /admin.php?op=blocks&save=2
While executing query "UPDATE cms_blocks SET weight=weight+1 WHERE weight>= AND bposition='r'"

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 'AND bposition='r'' at line 1


Thanks


mrnorton's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CPG Dragonfly CMS
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sun Jan 14, 2007 3:50 pm
Post subject: Re: Moving block left to the right

dragonflycms.org/cvs/h...php?v=9.27

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
mrnorton
Newbie
Newbie

Offline Offline
Joined: Jun 21, 2005
Posts: 8

PostPosted: Sun Jan 14, 2007 4:11 pm
Post subject: Re: Moving block left to the right

Thanks now it working.


mrnorton's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CPG Dragonfly CMS
Back to top
View user's profile Visit poster's website
ibnuahmad
Newbie
Newbie

Offline Offline
Joined: Sep 29, 2006
Posts: 13
Location: Malaysia
PostPosted: Tue Jan 23, 2007 11:08 am
Post subject: Error to change block Position

i'm try to change User info block Position, but Database error, warning massage :

includes/db/db.php

* CMS Warning line 75: On /v1/admin.php?op=blocks&save=2 While executing query "UPDATE cms_blocks SET weight=weight+1 WHERE weight>= AND bposition='r'" 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 'AND bposition='r'' at line 1 In: public_html/v1/admin/modules/blocks.php on line: 460

anybody now why?


ibnuahmad's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.36 (Unix)/4.1.21-standard/4.4.2/9.1.1
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Jan 23, 2007 11:24 am
Post subject: Re: [fixed]database error has occurred -admin/modules/blocks.php

Use the link in the second post of this topic.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
ausindo
Newbie
Newbie

Offline Offline
Joined: Jul 31, 2006
Posts: 2

PostPosted: Thu Feb 01, 2007 3:27 am
Post subject: Error: Changing block from left to right

Hi

I got this error wheen changing block from left to right.
Any advise to fix this? Thank you


Code::
includes/db/db.php
CMS Warning line 75: On /admin.php?op=blocks&save=7 While executing query "UPDATE cms_blocks SET weight=weight+1 WHERE weight>= AND bposition='r'" 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 'AND bposition='r'' at line 1 In: /home/berkat/public_html/admin/modules/blocks.php on line: 460


ausindo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
cpg
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Thu Feb 01, 2007 3:59 am
Post subject: Re: [fixed]database error has occurred -admin/modules/blocks.php

your answer is right here.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
mario
Nice poster
Nice poster

Offline Offline
Joined: Sep 14, 2004
Posts: 67
Location: Duiven, The Netherlands
PostPosted: Tue Feb 06, 2007 11:13 am
Post subject: Re: Another block error 9.1.1

BrokenCrust wrote:
Moving a block from the right to the left (or I assume other editing of the block) throws an error. Also there are a bunch of notices

Code::
admin\modules\blocks.php

    * Notice line 432: Undefined index: content
    * Notice line 433: Undefined index: url
    * Notice line 445: Undefined index: in_module
    * Notice line 460: Undefined variable: weight

includes\db\db.php

    * CMS Warning line 75: On /admin.php?op=blocks&save=38 While executing query 
"UPDATE cpg_blocks SET weight=weight+1 WHERE weight>= AND bposition='l'" 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 
'AND bposition='l'' at line 1 In: c:\cpgtest\html\admin\modules\blocks.php on line: 460

I got the same error as above, uploaded the latest CVS Blocks.php as stated in this post, no error after that however the block's list shows empty, as there wouldn't be installed one single block??


mario's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 / 4.0.25 / 4.3.11 / Dragonfly 9.0.6.01 and testsite, specs as before however with Dragonfly 9.1.1
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Feb 06, 2007 11:15 am
Post subject: Re: [fixed]database error has occurred -admin/modules/blocks

You shouldn't use the latest cvs file, otherwise you'll be needing others (like templates).

Please use the version stated or, use the full cvs snapshot which will soon be the next release.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Problems AFTER Install/Upgrade
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
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

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
Interactive software released under GNU GPL, Code Credits, Privacy Policy