Illegal String Offset Warnings

Hey Collective,

I have installed a clean version of Providence (1.7.11) and uploaded the database via a SQL backup, keeping only setup.php. Upon moving storage items from one place to another or renaming storage items, I get the following warning in the upper left:

Warning: Illegal string offset 'row_id' in [...]/app/lib/BundlableLabelableBaseModelWithAttributes.php on line 6092

Even though the change is made correctly. Testing to see where else this occurs.

Also, I just upgraded to using PHP version 7.4.12 from 5.6.40.

Thanks

Comments

  • Hi,

    This is a known issue. There'll be a patch for it in the next 1.7.x release. It's already fixed in develop/1.8. We'll try to put out a 1.7.12 release with the fix in the next few days.


    seth

  • Thank Seth!


    I found one other thing. When browsing object representations and selecting Object Representation Titles (using MYSQL version 5.7.32), I get the following:


    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' l.locale_id, l.representation_id ORDER BY l.name' at line 5 in [....]/app/lib/Db/mysqli.php line 316:


    1. In Db_mysqli->execute(Object DbStatement, Object DbStatement, ' SELECT COUNT(*) as _count, l.locale_id, l.name , l.representation_id, l.name FROM ca_object_representation_labels l INNER JOIN ca_object_representations ON ca_object_representations.representation_id = l.representation_id WHERE l.is_preferred = 1 AND (ca_object_representations.deleted = 0) GROUP BY l.name, , l.locale_id, l.representation_id ORDER BY l.name ', Array(0), ) in DbStatement line 151
    2. At DbStatement->executeWithParamsAsArray(Array(0)) in Db line 261
    3. At Db->query(' SELECT COUNT(*) as _count, l.locale_id, l.name , l.representation_id, l.name FROM ca_object_representation_labels l INNER JOIN ca_object_representations ON ca_object_representations.representation_id = l.representation_id WHERE l.is_preferred = 1 AND (ca_object_representations.deleted = 0) GROUP BY l.name, , l.locale_id, l.representation_id ORDER BY l.name ') in BrowseEngine line 3363
    4. At BrowseEngine->getFacetContent('title_facet', Array(2)) in BrowseEngine line 2617
    5. At BrowseEngine->getFacet('title_facet', Array(2)) in BaseBrowseController line 396
    6. At BaseBrowseController->getFacet() in RequestDispatcher line 273
    7. At RequestDispatcher->dispatch(Array(0)) in AppController line 113
    8. At AppController->dispatch(true) in index line 120

    Request parameters:

    1. facet => title_facet
    2. modify =>
    3. id =>
    4. clear => 0


Sign In or Register to comment.