Code Monkey home page Code Monkey logo

Comments (16)

victorjonsson avatar victorjonsson commented on June 11, 2024

Current version is 3.1.beta.41 . Please try again and let me know if the problem persists.

PS. remember that none of the "current" versions are in any way stable. We're getting close to a stable 3.1 version but I think it's a couple of weeks left..

from arlima.

chredd avatar chredd commented on June 11, 2024

I created a release for 3.1.beta.41 making it available for Composer: https://github.com/victorjonsson/Arlima/releases/tag/3.1.beta.41

from arlima.

awikell avatar awikell commented on June 11, 2024

Hi,
To clarify what @drawski meant, the latest master of Arlima doesn't install itself properly as a WordPress plugin. We realize that master is in no way stable but we needed some of the code changes you've made to how File Include paths are handled since 3.0.beta.61.

The master branch worked fine when we tested it on our existing sites which had Arlima installed since before, but if we create a new site and activate the Arlima plugin /wp-admin/ fails with a 500 Internal Server error. I Just verified that this happens with 3.1.beta.41 also. The stacktrace:

[Wed Mar 04 16:56:11 2015] [error] [client 192.168.50.1] WordPress databasfel f\xc3\xb6r Table 'wordpress.ab_445_arlima_articlelist_article' doesn't exist f\xc3\xb6rfr\xc3\xa5gan SELECT * FROM ab_445_arlima_articlelist_article LIMIT 0,1 skapat av require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('/vagrant/wordpress/wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, Arlima_WP_Plugin->adminInitHook, Arlima_WP_Plugin::update, Arlima_ListVersionRepository->updateDatabaseTables, Arlima_WP_Facade->runSQLQuery, referer: https://wordpress.local/skrap/wp-admin/plugins.php
[Wed Mar 04 16:56:11 2015] [error] [client 192.168.50.1] PHP Fatal error:  Uncaught exception 'Exception' with message 'Table 'wordpress.ab_445_arlima_articlelist_article' doesn't exist' in /vagrant/wordpress/wp-content/plugins/Arlima/classes/WP/Facade.php:311\nStack trace:\n#0 /vagrant/wordpress/wp-content/plugins/Arlima/classes/ListVersionRepository.php(590): Arlima_WP_Facade->runSQLQuery('SELECT * FROM a...')\n#1 /vagrant/wordpress/wp-content/plugins/Arlima/classes/WP/Plugin.php(464): Arlima_ListVersionRepository->updateDatabaseTables(0)\n#2 /vagrant/wordpress/wp-content/plugins/Arlima/classes/WP/Plugin.php(268): Arlima_WP_Plugin::update()\n#3 [internal function]: Arlima_WP_Plugin->adminInitHook('')\n#4 /vagrant/wordpress/wp/wp-includes/plugin.php(470): call_user_func_array(Array, Array)\n#5 /vagrant/wordpress/wp/wp-settings.php(352): do_action('init')\n#6 /vagrant/wordpress/wp-config.php(236): require_once('/vagrant/wordpr...')\n#7 /vagrant/wordpress/wp/wp-load.php(34): require_once('/vagrant/wordpr...')\n#8 /vagrant/wordpress/wp/wp-admin/admin.php(30): require_once('/vagrant/wordpr...')\n in /vagrant/wordpress/wp-content/plugins/Arlima/classes/WP/Facade.php on line 311, referer: https://wordpress.local/skrap/wp-admin/plugins.php

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

hm... okey. So you updated arlima from 3.0.beta61 to 3.1.beta.41 ?

from arlima.

awikell avatar awikell commented on June 11, 2024

Yes

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

What wp version may I ask?

from arlima.

drawski avatar drawski commented on June 11, 2024

WordPress 3.9.3

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

This is indeed interesting... I have some questions:

  • Do you get exactly the same error (including stack trace) when activating 3.1.beta.41 from scratch, as you got when you upgraded from 3.0.beta.61?
  • Do you have any code that alters the class wpdb somehow?
  • How is you error reporting setup?

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

I'm not sure if Arlima actually supports multi-site installations. I can reproduce this error by doing the following.

  1. I have a multi-site installation with a couple of sites (wp 3.9.3)
  2. Activate arlima for the entire network
  3. Create a new site
  4. Visit the new site.

Is this the same workflow that you have?

from arlima.

drawski avatar drawski commented on June 11, 2024

@victorjonsson Regarding your last question. Actually we know that Arlima throws errors while network activated so we always activate it on the site level. It was working... until now.

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

First off. Arlima does not support a network wide installation. It creates a lot of mess and Arlima is not capable of cleaning up after itself when uninstalled. Arlima will now throw an exception if being installed network wide.

However, installing Arlima on individual sites in a multi-site network should not be any problem. The error log you attached implies that arlima is installed (according to wordpress) but that the install-function never has run, or that the database tables that gets created is removed. I have added a fix for this.

If you have installed arlima network wide you should first of all deactivate it in network admin before upgrading arlima to the latest version in the master branch.

from arlima.

awikell avatar awikell commented on June 11, 2024

Thanks for the response victor. We're going to try your latest master branch now. If this works, would you mind creating a release for 3.1.beta.43 with your commits from yesterday? We'd rather not have a reference to your master in our composer

from arlima.

awikell avatar awikell commented on June 11, 2024

@drawski and me have just confirmed that it works. Could you make a release for us? Thanks a lot for the quick response!

from arlima.

chredd avatar chredd commented on June 11, 2024

Creating a release for 3.1.beta43!

from arlima.

drawski avatar drawski commented on June 11, 2024

It works like a charm on multisite installation. Thanks a lot!
I think we can close this issue @victorjonsson :)

from arlima.

victorjonsson avatar victorjonsson commented on June 11, 2024

Great.

from arlima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.