Undefined index: UrlCode

Hi,

I am getting a lot of debug trace warnings

Undefined index: UrlCode

If I try to run utility/update or utility/structure I am getting errors:

I have extension=curl, extension=mbstring enabled

Any ideas?

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I would say you should redo the update process. It sounds as if something seriously went wrong.


  • the first error refers to a column that already exists.

    applications/dashboard/settings/structure.php

    should contain

    if ($Construct->columnExists('Plugins.Tagging.Add')) {
        // Rename the permission column.
        $Construct->renameColumn('Plugins.Tagging.Add', 'Vanilla.Tagging.Add');
    

    grep is your friend.

  • x00x00 MVP
    edited November 2018

    so you structure update is failing becuase there is already this column

    do yo have both Plugins.Tagging.Add and Vanilla.Tagging.Add ?

    Run this sql

    select COLUMN_NAME from information_schema.columns where table_name='GDN_Permission' and column_name like '%Tagging%';

    and post the result.

    grep is your friend.

  • Also if you have the tagging plugin remove it, it is part of the core.

    grep is your friend.

  • I notice you are using windows MYSQL, which often come with case insensitivity. You want to make sure you have case sensitivity.

    https://stackoverflow.com/a/9910901

    grep is your friend.

  • x00x00 MVP
    edited November 2018

    Actually this won't work unless you up to date MySQL and windows.

    Tables are actual files, and the windows file system by default is case insensitive. but has the option since windows 10 to be case sensitive per directory.

    grep is your friend.

  • Hi

    Thanks for your suggestions
    Here is the result after running that query.
    in MySQL ini file I have lower_case_table_names=1 which should make it non case sensitive.

  • Now I tried to run utility updated and gave me success. I am not sure if it was a corrupted cache or something
    Now when I run structure it keeps giving this changes required but I click Run structure & data scripts it says it is updated and if I run rescan again it gives the same structure changes required

  • It might have been an order/collision thing

    grep is your friend.

Sign In or Register to comment.