• Resolved bmaderotterdam

    (@bmaderotterdam)


    I’m trying to move a wordpress website from an old server to a new server with PHP7.3
    On wp-admin i get the login screen, but when i login i am getting the following error.

    Fatal error: Uncaught Exception: Failed to register alias for AC\Column\Media\MediaParent in /*****/httpdocs/wp-content/plugins/codepress-admin-columns/classes/Autoloader/Underscore.php:49

    If i comment this rule in codepress-admin-columns.php it then gives the same error for AC\Column\Post\PostParent

    When i also comment that rule i am getting the dashboard.
    It looks like those 2 classes aren’t registered when creating the aliases.
    I see the classes in classes/column/media/MediaParent.php and classes/column/post/PostParent.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefan van den Dungen Gronovius

    (@dungengronovius)

    Sorry for the late response.
    This error should fire when the method class_exist for that class fails.
    Since you already said that the classes are available in your environment, I’m not sure why those classes are not recognized in your environment.

    I’m also running PHP7.3 and I’m not able to reproduce this issue. Did you try this on a fresh install and does it also happen on that environment?

    Thread Starter bmaderotterdam

    (@bmaderotterdam)

    Hi @dungengronovius

    I have found the problem and fixed it on my server.
    Maybe you can supply an update for your plugin, so i can update it through wordpress and won’t get problems when you push another update.

    i did the following commands on my server.
    mv column Column
    mv Column/media/ Column/Media/
    mv column.php Column.php
    mv Column/post/ Column/Post/

    i saw these folders / file had lowercase first letter and the classes had a uppercase first letter.

    Plugin Author Stefan van den Dungen Gronovius

    (@dungengronovius)

    Thanks for the explanation.
    When I download the latest package, those folders are renamed correct with uppercase at the start. Are you using the latest version and do you have this issue when you install the latest version from ww.wp.xz.cn? Because that would be quite strange or at least something I don’t understand 🙂
    But it is the case, we would definitely have another look at that.

    Thread Starter bmaderotterdam

    (@bmaderotterdam)

    It’s the latest version of wordpress and de plugin.
    When i download the plugin manually now it looks good.

    I think it happend because a colleague of mine updated the plugin on a windows machine.
    Windows is not case sensative and problably thats why it was still lowercase.

    So you can close this ticket and it seems you won’t have to update the plugin 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘BUG Failed to register alias’ is closed to new replies.