ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Undefined index: filename in ... on line 33 error when running script to update themes for forum 3.0.0

December 07, 2010 1:44am

Subscribe [4]
  • #1 / Dec 07, 2010 1:44am

    newcastlenow

    16 posts

    Hello,

    I just updated my EE from 1.6.8 to 2.1.1; seems to have gone smoothly.

    Also upgraded my forum from 2.1.2 to 3.1.  That seems to have worked fine too, until I got to the “convert your themes to the new file/folder format” step.

    I uploaded my backup copy of the old theme to profile_themes folder and then copied in the convert_forum_theme.php file.  Accessed it via my browser, confirmed that the folder is writable using my ftp tool and click the convert button.

    Then i get a number (~20) errors like this:

    Notice: Undefined index: filename in /www/xyz/public_html/themes/forum_themes/ncnowold/convert_forum_theme.php on line 33

    followed by a number of:
    Warning: mkdir() [function.mkdir]: File exists in /www/xyz/public_html/themes/forum_themes/ncnowold/convert_forum_theme.php on line 48

    and then a single:
    Fatal error: Class ‘convert_forum_theme’ not found in /www/xyz/public_html/themes/forum_themes/ncnowold/convert_forum_theme.php on line 58

    Any ideas?  Thanks.

  • #2 / Dec 07, 2010 10:50am

    Sue Crocker

    26054 posts

    Hi, newcastlenow. I’ll admit, I’ve not upgraded any forum themes yet.

    Looking at the docs, I see:

    There is also a small standalone script utility to help you automate these changes. If you have greatly deviated from structure and files in your own theme, there may be some manual changes you will still need to make, but on most themes, running this utility and moving the resulting files will be all you need to do.

    How different is this theme from a regular 2.1.x theme?

  • #3 / Dec 07, 2010 6:51pm

    newcastlenow

    16 posts

    I don’t think it is too different - created it by copying the 2.1 default theme and then modifying to get the look I needed.

  • #4 / Dec 08, 2010 4:52pm

    Ingmar

    29245 posts

    When you try the original default theme, does that work?

  • #5 / Dec 09, 2010 12:26am

    newcastlenow

    16 posts

    Good idea.  Just tried it and got the same:
    Notice: Undefined index: filename….

    error repeated a number of times and then NO mkdir errors and then the single:
    Fatal error: Class ‘convert_forum_theme’ not found

    error….

  • #6 / Dec 09, 2010 4:35pm

    Ingmar

    29245 posts

    Are you using the current default theme? Try to replace you files with a fresh set, be sure to get all files (themes, cp, the whole works).

  • #7 / Dec 09, 2010 11:46pm

    newcastlenow

    16 posts

    Looking at the folder i just noticed there is now a converted_theme folder in there.  I moved the contents of that folder up a lever and things seem to be working.  Am testing it right now.  I must say i think it is quite odd that the script managed to convert a number of the folders producing nothing but error messages.  There was no indication at all that anything was converted successfully, and nothing that i saw in the documentation directing me to look for a “converted_theme” folder.

  • #8 / Dec 10, 2010 3:22pm

    Greg Salt

    3988 posts

    Hi newcastlenow,

    Is it possible that you requested the forum conversion script twice? Errors like that might be generated if the conversion had already been done.

    Cheers

    Greg

  • #9 / Dec 13, 2010 9:48pm

    newcastlenow

    16 posts

    I don’t think that is possible.  I got the error the first time i ran it, then I repeated the process multiple times thinking i was putting script in wrong folder/location.  Each time i would delete the specific theme folder on the server and copy up backup version to be sure i had correct version.  I also tried converting the default theme as Ingmar suggested and got same error first time i tried.

    In any case, it seems to have worked despite the errors so we can consider this closed as far as I’m concerned.

  • #10 / Dec 14, 2010 9:21am

    Sue Crocker

    26054 posts

    Sounds good to me. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases