Author Topic: some 2.8.1 issues  (Read 8296 times)

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
some 2.8.1 issues
« on: February 05, 2010, 10:03:45 PM »
Today I tested:

CMS Version 2.8.1
Revision 1274
Admin version 1.4

on

#  Apache/2.0.61 (Win32)
# PHP/5.2.6
# SQLite 2
# MySQL 5.0.41-community-nt

and I experienced wierd issues. Seccond time (first was when I installed it) I couldnt open site. When I installed DB, I set collation to utf8_general_ci. Tables mod_capcha_control, groups, jsadmin (didnt check for more..) were damaged.

Did anyone experienced same problem?

Also another thing,
I successfully implement items reordering via drag and drop for WB 2.8 Stable. Hovever, this is not working on WB version I put above.. Did something significant changed in backend? I replaced jquery1.4 with 1.3.2 but still not working.

I suggest to leave file named jquery-min.js to 1.3.2 version, and 1.4 version to rename to jquery1.4.js because of module compatibility with version 2.7 and 2.8..
no bb in signature

doc

  • Guest
Re: some 2.8.1 issues
« Reply #1 on: February 06, 2010, 07:59:10 AM »
Hi,

tried to reproduce your error with the latest WB SVN (Revision 1285) on XAMPP 1.7.3. Installation went smooth, no problems with DB (and collation utf_8_general).

I highly recommend to leave the jquery 1.4.1 version as is, as it fixes more than 170 bugs contained in 1.3.1. So far I never run into any problems with jquery 1.4.1 and WB modules. Your drag and drop problem seems not to be related to jquery, as switching to jQuery 1.3.1 obviously did not solve your issue.

Regards Doc

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #2 on: February 06, 2010, 09:36:23 AM »
it makes no sense to search for a bug in a outdatet version of WebsiteBaker. other problem maybe is your mysql version. i know that MySQL 5.0.41-community-nt was a very buggy version. so upgrade your mysql und try again with the latest svn from wb.
everything will be allright :-D :-D

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #3 on: February 06, 2010, 11:14:11 AM »
So far I never had problems with SQL, this is wb portable server from mr-fan. I have over 10 WB sites there and I never had a single DB error.

SVN 1274 is WB 2.8.1 RC3 from AMASP site. Where can I get latest revision?
no bb in signature

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #4 on: February 06, 2010, 11:18:10 AM »
http://project.websitebaker2.org/browser/branches/2.8.x


Download in other formats:

    * Zip Archive


Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: some 2.8.1 issues
« Reply #5 on: February 06, 2010, 11:37:31 AM »
It is better though to make an svn export, so the svn properties are set as well. That makes troubleshooting later down the line a bit more easy. Or, if you can wait a bit more, the 2.8.1 release is not long to go anymore.

A popular client for Windows is available at http://tortoisesvn.net/ ...

cheers

Klaus

doc

  • Guest
Re: some 2.8.1 issues
« Reply #6 on: February 06, 2010, 11:39:47 AM »
Hi,

and if you use a client like Tortoise SVN to fetch the latest WB version from SVN, you also need a download URL:
http://svn.websitebaker2.org/branches/2.8.x

Doc

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #7 on: February 06, 2010, 11:54:20 AM »
Tnx for tips guys,

I downlaoded latest SVN, and I found why drag n drop is not working:

In argos theme, in footer.htt this script is commented... When I uncomment it, it works..
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

I couldnt find any ticket for this, could anyone remember why this script is commented?
no bb in signature

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #8 on: February 06, 2010, 12:10:05 PM »
Quote
could anyone remember why this script is commented?

you don´t need ui.js for drag and drop

it works wonderful with commented line for me and in wb theme there isn´t a line like this

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #9 on: February 06, 2010, 12:18:01 PM »
I am not talking about drag and drop for pages (they are not using jquery interface for drag n drop), I am takling about I created srcipt to reorder items via drag n drop for members module, bakery...and I will do it for more modules..

I am using argos theme, and there this script is in comment lines. I see that wb_theme is not calling that script.

Sorry if I wasnt clear in my first post about drag n drop.
no bb in signature

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #10 on: February 06, 2010, 12:21:53 PM »
i can´t understand, when you create a own script then it isn´t an 2.8.1 issue. i think your script needed ui.js und so you must insert ui.js in your script...   :? :?

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4332
  • Gender: Male
    • Webdesign und Entwicklung WebsiteBaker
Re: some 2.8.1 issues
« Reply #11 on: February 06, 2010, 12:23:02 PM »
Ok, i understand, so you need the ui-min.js. Better to insert the ui-min.js, by your script with insert.js, so you can too use it with other themes

Dietmar

Immer nur von der Zukunft reden, die Gegenwart vergessen und auf die Vergangenheit schimpfen
Neues Unwort: Schnappatmung

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #12 on: February 06, 2010, 12:30:53 PM »
@Luisehahne

how to insert it..?
The script needs to be in backend footer.htt file
@maverik

It worked fine in WB 2.8 stable, and in 2.8 RCxxx the same jquery script is dissabled (commented) I couldnt figure out this untill recently..
« Last Edit: February 06, 2010, 12:32:26 PM by crnogorac081 »
no bb in signature

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #13 on: February 06, 2010, 12:56:55 PM »
what i want to say is that your script should work alone in all wb backend themes, not every backend theme has ui.js includet...i hope you understand my poor english

Quote
how to insert it..?

Code: [Select]
$(document).ready(function()
{
$.insert(WB_URL+'/path/to/your/script.js');
});

therefore jquery-min.js and jquery-insert.js must be loadet
« Last Edit: February 06, 2010, 12:58:53 PM by maverik »

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #14 on: February 06, 2010, 01:02:42 PM »
thnaks maverik
no bb in signature

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #15 on: February 06, 2010, 01:06:09 PM »
That's a real wired aspect.
Per default ALL the jQuery has to be loaded in frontend, but not in the backend, where it's more needed.  :-D

Sorry, could not resist... :-D

Come on guys, it worked well with 2.8.0, why delete it in 2.8.1, hm?
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: some 2.8.1 issues
« Reply #16 on: February 06, 2010, 01:26:54 PM »
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

is there for the next version, but not actually used yet in this (RC) version. Therefore it's commented.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: some 2.8.1 issues
« Reply #17 on: February 06, 2010, 01:39:09 PM »
@stefek

i think your opinion is " i dont know what it is but i´m against it"

read, learn and understand jquery and what to do with it

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #18 on: February 06, 2010, 01:56:07 PM »
@stefek

i think your opinion is " i dont know what it is but i´m against it"

read, learn and understand jquery and what to do with it
Maverik,
you don't know what I am doing with jQuery, right?

I know about the insertion possibilities very well and used it to load further JS on demand in modules allready.

But it shouldn't be done with the UI from inside the modules (think of multiple sections with different modules).

There is no reason to comment the UI out of the Backend.
It's useful at many places and it has to be loaded only once.

My approach for the frontend (not the backend) is totaly different as yours.
But this has nothing to do in this thread.

Stefek

"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: some 2.8.1 issues
« Reply #19 on: February 06, 2010, 02:10:10 PM »
Code: [Select]
<!--
<script src="{WB_URL}/include/jquery/jquery-ui-min.js" type="text/javascript"></script>
-->

is there for the next version, but not actually used yet in this (RC) version. Therefore it's commented.

That's good news, Jurgen.
I hope it will turn back into the Backend Themes (all).

Kind Regards,
Stefek
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: some 2.8.1 issues
« Reply #20 on: February 06, 2010, 02:16:42 PM »
Well, next Argos theme version uses jQuery anyway, and that will very probably be part of WB2.8.2. So I guess the jQuery core and jQuery UI will be part of the backend by default then. But I'm just a simple backend theme guy, not one of the developes, so they may come up with another way of using jQuery in the backend than the one I'm testing now.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #21 on: February 06, 2010, 03:09:13 PM »
Lets just not open wide discussion here.

I just wanted to know why the jquery-ui-min.js exists in WB 2.8.0 Stable version in Backend theme (argos_theme) in Footer.htt file and in WB 2.8.1 RC3 and latest SVN this file is removed (commented) and is there some specific reason (for example some incompatibility or whatever...) that developers spoted, so they removed it from loading..

thats all..

Ivan
no bb in signature

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4332
  • Gender: Male
    • Webdesign und Entwicklung WebsiteBaker
Re: some 2.8.1 issues
« Reply #22 on: February 06, 2010, 03:33:30 PM »
It was comment out, because actuelly it is not used, and decrease traffic (188kb by loading a page)

Dietmar
Immer nur von der Zukunft reden, die Gegenwart vergessen und auf die Vergangenheit schimpfen
Neues Unwort: Schnappatmung

doc

  • Guest
Re: some 2.8.1 issues
« Reply #23 on: February 06, 2010, 04:08:52 PM »
Hi,

well the status is a bit complex, so I try to give a short summary.

Frontend module files
The optional Add-on files "frontend.css" and "frontend.js" are automatically loaded by WB, if the "register_frontend_m odfiles" function is invoked from the index.php of the frontend template.
Note: This does not work in all module files, it just works in WB controlled files such as "view.php". So if you have a "save_my_settings.ph p" which does something in the frontend part of your Add-on, the frontend files will not automatically be included.

Backend module files
The optional Add-on files "backend.css" and "backend.js" are automatically loaded by WB since WB 2.7.
Note: This does not work in all module files, it just works in WB controlled files such as "include.php", "modify.php".

jquery-min.js
Automatically loaded in backend pages, which includes the theme file "footer.htt" (e.g. /template/xxx_theme/templates/footer.htt). The JS lib is included to the end of the body not in the head.
Note: while "jquery-min.js" is loaded in all themes, "jquery-ui-min.js" is not loaded automatically by all themes.

EditArea
Automatically included in the head secton of all backend pages (2.8.1). Loading mechanism was changed some times from 2.8 RC1 to 2.8.1. Latest load mechanism is to include this lib via /template/xxx_theme/templates/header.htt

Non WB controlled Add-on files
In non WB controlled Add-on files (e.g. files which take values from AJAX, Forms etc.) and save them to DB etc, the developer needs to take care that JS or CSS files are included. On possbile way of including files to non WB controlled Add-on files is shown in the AFE "action_handler.php" file (function myAdminWrapper).

Regards Doc

P.S.: The summary is by no means exhaustive. I just wanted to highlight some of the aspects. Files like the "frontend_body.js" are not even mentioned above. Maybe some aspects will be documented with the updated WB help site :wink:
« Last Edit: February 06, 2010, 06:05:41 PM by doc »

Offline crnogorac081

  • Posts: 1889
  • Gender: Male
Re: some 2.8.1 issues
« Reply #24 on: February 06, 2010, 04:22:32 PM »
Thanks both,

So now I have to wait for final 2.8.1 release to see if this script will be included or not in final package.

no bb in signature