Results 1 to 9 of 9

Thread: old contao 2 src format

  1. #1
    User
    Join Date
    05-12-14.
    Posts
    72

    Default old contao 2 src format

    Im getting error messages pertaining to the fact that some pages are still using the old contao 2 src format.

    I found this script: https://gist.github.com/chani/7152187. It also mentions about running this script first:
    * You might also want to run the following script first, which replaces occurences
    * of tl_files/ with files/
    * https://gist.github.com/leofeyer/3304014

    So, how do i go about running these scripts. e.g. where do i place these scripts, how do i execute these scripts? I have already renamed the folder tl_files to files and had the 3 prompts to update the database in the install.pho.


    Many thanks
    Last edited by markclaus; 06/18/2014 at 13:22.

  2. #2
    User
    Join Date
    07-23-10.
    Posts
    86

    Default

    Quote Originally Posted by markclaus View Post
    So, how do i go about running these scripts. e.g. where do i place these scripts, how do i execute these scripts? I have already renamed the folder tl_files to files and had the 3 prompts to update the database in the install.pho.
    you should not rename manualy for this you have this Scripts. When a script ends with .php you should be able to run it from the URL. Just copy the code in a textdocument and name it as you like with the ending .php. If done so, you can run it from the Browser localhost//wereeveryourdatais/yourscript.php (i guess the contao root is the right place)

    About contao2go, you dont need it, but it could help to make your live easy with Contao. I prepared a c2gmanager where is nothing else as contao2go. Even made a smal manual how to install it:

    https://github.com/ciaobello/c2gmanager
    Last edited by ciaobello; 06/18/2014 at 17:19.

  3. #3
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    how do i know when that contao2srcto3.php script has finished.
    I get the Retrieving a list of tables to convert..., but nothing else happens.

  4. #4
    User
    Join Date
    07-23-10.
    Posts
    86

    Default

    I have already renamed the folder tl_files to files and had the 3 prompts to update the database in the install.pho.
    It might not work if you not made a restore and started over?!

    You just should read a bit in the Document from leo, there you see a example output:

    Quote Originally Posted by https://gist.github.com/chani/7152187#file-contao2srcto3-php-L46
    * Example Output:
    * Retrieving a list of tables to convert...
    * Found 6 tables with columns which might need to be converted...
    *
    * Converted 76 pictures (0 failed) in table tl_calendar_events
    * Converted 0 pictures (0 failed) in table tl_content
    * Converted 0 pictures (0 failed) in table tl_faq
    * Converted 0 pictures (0 failed) in table tl_form_field
    * Converted 73 pictures (0 failed) in table tl_module
    * Converted 0 pictures (0 failed) in table tl_news
    *
    * Converted 149 pictures overall,
    * couldn't convert 0 (did you synchronize files?) and
    * failed to convert 0 files

  5. #5
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Yup, did all that, it didn't seem to work.
    I updated it manually in the end.

  6. #6
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by ciaobello View Post
    you should not rename manualy for this you have this Scripts. When a script ends with .php you should be able to run it from the URL. Just copy the code in a textdocument and name it as you like with the ending .php. If done so, you can run it from the Browser localhost//wereeveryourdatais/yourscript.php (i guess the contao root is the right place)

    About contao2go, you dont need it, but it could help to make your live easy with Contao. I prepared a c2gmanager where is nothing else as contao2go. Even made a smal manual how to install it:

    https://github.com/ciaobello/c2gmanager

    but not available for Mac yet.

  7. #7
    User
    Join Date
    07-23-10.
    Posts
    86

    Default

    c2g manager works on linux mac & windows. Just check out the Tutorial how to install.

  8. #8
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by ciaobello View Post
    c2g manager works on linux mac & windows. Just check out the Tutorial how to install.
    Ok, thanks, I will.

    I meant contao2go is not available for Mac/Linux yet

    The c2gadmin extension is not compatible for Contao 3.2, so doesn't that make c2g manager redundant for me?
    Last edited by markclaus; 06/26/2014 at 11:30.

  9. #9
    User
    Join Date
    07-23-10.
    Posts
    86

    Default

    You can manage Contao3 Websites without problems. Just use in the base installation contao 2.11. As long you work localy there is no risk of security.

    In fact this means, you have to install in your webroot a contao 2.11 installation. Include the manager and start to enjoy the the feeling of contao2go. In the subdirectories of your local website /vhosts you can install your Contao3 projects now.

    Very important! Just Read the Manual!
    https://github.com/ciaobello/c2gmanager

    If you see mistakes you can make a change requests on Github:
    https://github.com/ciaobello/c2gmanager/issues

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •