Sharepoint REST call to get file by ID – GetFileById fail on 404

There are some files. when I’m trying to get their content by ID (GetFileById) I’m getting 404 Not found error. I’m getting the file unique id from the item properties and then trying to get the content, and then it fails. Interesting that, in many cases when I’m trying to get same file by relative URL GetFileByServerRelativeUrl I’m getting : The length of the URL for this request exceeds the configured maxUrlLength value error.

So, I actually don’t have any option to download the file. Any advise is welcome.

Thanks

Call a function from a bash script

I have a function in a specific installed program on my Ubuntu machine which is installed in /usr/local/MYPROGRAM/bin/myfn and when I try using myfn in my bash script mybashscript.sh it gives an error saying that the myfn command is not found but if I call myfn from a normal terminal window it works fine since it’s found in the ~/.bashrc file, so I wonder how I can call myfn from my bash script mybashscript.sh?

Uncaught Error: Call to undefined function mysql_connect() – WordPress installation

Trying to install wordpress without xamp on my local machine. Version info:

WordPress: 5.2.3 PHP: 7.3.9 Apache: 2.4.41  

When accessing this url -http://localhost:8080/wordpress/wp-admin/install.php, I see the following in wordpress logs:

[16-Sep-2019 18:47:34 UTC] PHP Fatal error:  Uncaught Error: Call to  undefined function mysql_connect() in C:\apps\httpd-2.4.41-win64-  VS16\Apache24\htdocs\wordpress\wp-includes\wp-db.php:1643 

I tried the solutions available online but I still see the error.

Solutions I tried so far:

Add the following to my wp-config.php:

define( 'WP_USE_EXT_MYSQL', true); 

Added following to php.ini:

extension_dir = "ext" extension=php_mysqli.dll 

This is my phpinfo:

Server API  Apache 2.0 Handler Virtual Directory Support   enabled Configuration File (php.ini) Path   C:\windows Loaded Configuration File   C:\apps\php-7.3.9\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed    (none) PHP API 20180731 PHP Extension   20180731 Zend Extension  320180731 Zend Extension Build    API320180731,TS,VC15 PHP Extension Build API20180731,TS,VC15 Debug Build no Thread Safety   enabled Thread API  Windows Threads Zend Signal Handling    disabled Zend Memory Manager enabled Zend Multibyte Support  disabled IPv6 Support    enabled DTrace Support  disabled Registered PHP Streams  php, file, glob, data, http, ftp, zip, compress.zlib, phar Registered Stream Socket Transports tcp, udp Registered Stream Filters   convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.* 

REST call to SharePoint Online from Designer Workflow

I have been trying to get user manager using REST call from SharePoint Designer

[https://site_url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i%3A0%23.f%7Cmembership%7COmi%40company.com%27][1]

above link works ok and returns entire JSON with unwanted properties of that user

I tried below link for getting only manger, so I added propertyName=’Manager’ but it returns The parameter name propertyName is not valid

https://site_url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v,propertyName=’Manager’)?@v=%27i%3A0%23.f%7Cmembership%7COmi%40company.com%27

Thanks

Sharepoint 2013: simple api call not working

[site name]_api/web/lists/GetByTitle(‘ListName’)/items 

So why does this not work? All the examples I see indicate that it should work.

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <m:code> -1, Microsoft.SharePoint.Client.InvalidClientQueryException </m:code> <m:message xml:lang="en-US"> The expression "web/lists/GetByTitle(‘ListName’)/items" is not valid. </m:message> </m:error> 

(20161101) More info:

I’m working through this example: [https://blogs.msdn.microsoft.com/sridhara/2014/08/21/fix-sharepoint-2013-workflow-recursion-prevention-part-2/]

List 2 successfully creates a new item, and I can get the GUID from that new item. This next step fails.

HTTP Web Service info: [%WorkflowContext:CurrentSiteURL%]_api/web/lists/GetByTitle(‘List2’)/items?$ filter=GUID eq ‘[%Variable: NewItemGUID%]’

Response Code = BadRequest. I also log the http web service call string:

https://testwebsite/_api/web/lists/GetByTitle(‘List2’)/items?$ filter=GUID eq ’38bc1c7d-e020-4c71-a8bf-5b1a344e6b1d’

What’s wrong with the above?

fatal error: call to undefined function mysqli_connect on phpdesktop-linux-72.1 on linux

and i want to make .exe file on linux and this error is showing while we execute the code so kindly anyone help me to sort out this problem

fatal error: call to undefined function mysqli_connect() in /home/ahsan/desktop/phpdesktop-linux-72.1/www/index.php(29): include()#1 {main} thrown in /home/ahsan/desktop/phpdesktop-linux-72.1/www/connection.php on line #6

Call of Cthulhu – Eberron Crossover Advice

I am running an Eberron Campaign in the 3.5 ruleset. However, I am trying to bring in aspects of the Cthulhu mythos. I want to give my players a doctored copy of the Necronomicon, altered to be Eberron-specific. Here are some of the alterations:

  1. Instead of being written by the Mad Arab, it is written by the Mad Sahuagin.
  2. All of the locations are changing from land-based to sea-based locales.
  3. Instead of seven Zonei, I was thinking of using the twelve dragon deities, each attuned to a different moon and a different plane. Some of them are easy to figure. Others, less so.

It is part (3) that is giving me troubles. Here is what I have so far:

Plane: Daanvi, The Perfect Order
Moon: Rhaan, the Book (Small Pale Blue)
Deity: Lendys (dragon god of justice)? Hlal (symbol is an open book)?

Plane: Dal Quor, The Region of Dreams
Moon: Crya, the destroyed moon
Deity: Sardior (gem dragon god)?

Plane: Dolurrh, The Realm of the Dead
Moon: Vult, the Warding Moon (Large Grey and full of craters)
Deity: Chronepsis (god of afterlife)? Tamara (god of healing, life, and death)?

Plane: Fernia, The Sea of Fire
Moon: Aryth, the Gateway (Medium Orange-Red)
Deity: Garyx (god of fire)?

Plane: Irian, The Eternal Day
Moon: Nymm, the King (Small Pale Yellow)
Deity: Bahamut?

Plane: Kythri, The Churning Chaos
Moon: Lharvion, the Eye (Large White with Black Crevasse)
Deity: Chronepsis because his symbol is an eye, or Tiamat?

Plane: Lamannia, The Twilight Forest
Moon: Barrakas, the Lantern (Small Pale Grey)
Deity: Aasterinian or Astilabor?

Plane: Mabar, The Endless Night
Moon: Sypheros, the Shadow (Large Smoky Grey)
Deity: Faluzure

Plane: Risia, The Plain of Ice
Moon: Dravago, the Herder’s Moon (Medium Pale Lavender)
Deity: Io?

Plane: Shavarath, The Battleground
Moon: Olarune, the Sentinel (Medium Pale Orange)
Deity: Tiamat? Lendys?

Plane: Syrania, The Azure Sky
Moon: Zarantyr, the Storm Moon (Large Pearly White)
Deity: Bahamut? Aasterinian?

Plane: Thelanis, The Faerie Court
Moon: Therendor, the Healer’s Moon (Medium Pale Gray)
Deity: Hlal (storytelling) or Tamara (Healing)?

Plane: Xoriat, The Realm of Madness
Moon: Eyre, the Anvil (Small Silver-Gray)
Deity: Cthulhu (god of madness)? Io (god of creation)? Garyx (the insane dragon god)?

Questions: Is this a good idea? Do the dragon deities make for good astral deities? Should they be associated with the moons? Or should they instead be associated with constellations? And if they are associated with constellations, should they be associated with planes?

Any suggestions for the matches I came up with?

How to call a sharepoint online hosted site from a independently hosted html site using JSOM?

I need to call a sharepoint online hosted site(created as a developer site) from a independently hosted html site containing JSOM and display the list items present on the sharepoint hosted site in the independently created html site. Any guidance on how to go about this.

UnauthorizedAccessException error when using REST Call in Workflow

I am trying to get a user’s line manager in a workflow in a SharePoint online site collection.

I have followed the exact steps here and and also running with App Step -elevated permissions- as you can see in screenshot. I have already gave trust to Workflow on appinv.aspx following the steps here.

Workflow

Rest call URL is something like this: https://mycompanyname.sharepoint.com/sites/forms/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName=’Manager’)?@v=%27i:0%23.f%7Cmembership%7CMYACCOUNT%27

With this URL I CAN access the response from browser, and get the line manager.

However in the workflow, no matter what I did it’s erroring.

  {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}  

I logged the ‘Dictionary'(Headers) and it looks like it’s adding an extra / in there:

**{"Accept":"application\/json;odata=verbose","Content-Type":"application\/json;odata=verbose"}** 

Result

enter image description here

this dictionary is looking like this in Workflow.

enter image description here

I really don’t understand why the Rest call is working in browser, and not working inside the workflow. As I said I have already given FullControl to Workflow app in appinv.aspx.

I am also unable to understand why it adds the extra “\” into the Request Header (Headers/ dictionary)

Please help! If GetUserProfilePropertyFor cannot be called like this, let me know so this torture ends.